Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006039/0.006039, allocations: 100.1 kB / 15.73 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 191.5 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 240.4 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002141/0.002141, allocations: 288.4 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9367/0.9367, allocations: 169.3 MB / 0.4983 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 95.86 kB / 0.681 GB, free: 7.449 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4454/0.4473, allocations: 86.98 MB / 0.7659 GB, free: 3.828 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.005346/0.4527, allocations: 3.074 MB / 0.7689 GB, free: 0.7422 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003091/0.4558, allocations: 1.714 MB / 0.7706 GB, free: 15.02 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002203/0.4561, allocations: 7.938 kB / 0.7706 GB, free: 15.01 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.4573, allocations: 330.7 kB / 0.7709 GB, free: 14.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006468/0.4579, allocations: 215.1 kB / 0.7711 GB, free: 14.48 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005475/0.4585, allocations: 179.5 kB / 0.7713 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004673/0.459, allocations: 315 kB / 0.7716 GB, free: 13.99 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004547/0.4594, allocations: 244.7 kB / 0.7718 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002781/0.4597, allocations: 135.6 kB / 0.7719 GB, free: 13.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003827/0.4601, allocations: 159.5 kB / 0.7721 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.4602, allocations: 23.94 kB / 0.7721 GB, free: 13.44 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004692/0.4606, allocations: 239.6 kB / 0.7723 GB, free: 13.2 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.4608, allocations: 103.8 kB / 0.7724 GB, free: 13.1 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001528/0.4609, allocations: 127.3 kB / 0.7726 GB, free: 12.98 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006089/0.4616, allocations: 422.8 kB / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4616, allocations: 0 / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.382e-06/0.4616, allocations: 0 / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.4616, allocations: 0 / 0.773 GB, free: 12.56 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001168/0.4628, allocations: 0.5535 MB / 0.7735 GB, free: 11.96 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.4628, allocations: 8.031 kB / 0.7735 GB, free: 11.95 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.042e-05/0.4629, allocations: 62.72 kB / 0.7736 GB, free: 11.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007823/0.4637, allocations: 96.55 kB / 0.7737 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003534/0.4641, allocations: 259.8 kB / 0.7739 GB, free: 11.5 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.4641, allocations: 20.8 kB / 0.7739 GB, free: 11.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.4642, allocations: 24.56 kB / 0.774 GB, free: 11.45 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005832/0.4648, allocations: 372.9 kB / 0.7743 GB, free: 11.07 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.82e-05/0.4648, allocations: 4 kB / 0.7743 GB, free: 11.06 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.4649, allocations: 12 kB / 0.7743 GB, free: 11.05 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.944e-05/0.465, allocations: 28.42 kB / 0.7744 GB, free: 11.02 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004836/0.4655, allocations: 309.5 kB / 0.7747 GB, free: 10.72 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.4673, allocations: 1.525 MB / 0.7761 GB, free: 9.043 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004318/0.4678, allocations: 226.4 kB / 0.7764 GB, free: 8.812 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.4679, allocations: 116.7 kB / 0.7765 GB, free: 8.695 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001498/0.4681, allocations: 93.09 kB / 0.7766 GB, free: 8.586 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.4681, allocations: 38.5 kB / 0.7766 GB, free: 8.539 MB / 0.545 GB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.4681, allocations: 4 kB / 0.7766 GB, free: 8.535 MB / 0.545 GB Notification: Performance of matching and sorting (n=19): time 0.001325/0.4695, allocations: 0.787 MB / 0.7774 GB, free: 7.699 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.699e-05/0.4695, allocations: 55.41 kB / 0.7774 GB, free: 7.633 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.4697, allocations: 196.4 kB / 0.7776 GB, free: 7.434 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.4698, allocations: 25.7 kB / 0.7776 GB, free: 7.402 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.4699, allocations: 167.8 kB / 0.7778 GB, free: 7.234 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.742e-05/0.4699, allocations: 67.11 kB / 0.7779 GB, free: 7.168 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4701, allocations: 57.59 kB / 0.7779 GB, free: 7.105 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4702, allocations: 330.8 kB / 0.7782 GB, free: 6.773 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001935/0.4704, allocations: 115.9 kB / 0.7783 GB, free: 6.66 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002167/0.4706, allocations: 174.2 kB / 0.7785 GB, free: 6.469 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.471, allocations: 288.2 kB / 0.7788 GB, free: 6.168 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.471, allocations: 8 kB / 0.7788 GB, free: 6.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007844/0.4718, allocations: 417.1 kB / 0.7792 GB, free: 5.746 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.4718, allocations: 4 kB / 0.7792 GB, free: 5.742 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4719, allocations: 4 kB / 0.7792 GB, free: 5.738 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004339/0.4723, allocations: 104.9 kB / 0.7793 GB, free: 5.633 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000252/0.4726, allocations: 51.91 kB / 0.7793 GB, free: 5.582 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002065/0.4746, allocations: 1.875 MB / 0.7812 GB, free: 3.562 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002179/0.4749, allocations: 23.98 kB / 0.7812 GB, free: 3.539 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.734e-05/0.4749, allocations: 12 kB / 0.7812 GB, free: 3.527 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.4751, allocations: 153.8 kB / 0.7814 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.232e-05/0.4751, allocations: 15.81 kB / 0.7814 GB, free: 3.352 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005022/0.4756, allocations: 295.4 kB / 0.7817 GB, free: 3.059 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.4757, allocations: 3.984 kB / 0.7817 GB, free: 3.055 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-06/0.4757, allocations: 4 kB / 0.7817 GB, free: 3.051 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.4757, allocations: 7.922 kB / 0.7817 GB, free: 3.043 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.4767, allocations: 0.7097 MB / 0.7824 GB, free: 2.273 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.4767, allocations: 0 / 0.7824 GB, free: 2.273 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003007/0.477, allocations: 63.83 kB / 0.7824 GB, free: 2.211 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.881e-06/0.477, allocations: 3.938 kB / 0.7824 GB, free: 2.207 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.216e-05/0.4771, allocations: 8 kB / 0.7824 GB, free: 2.199 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.4771, allocations: 4.062 kB / 0.7824 GB, free: 2.195 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.4771, allocations: 0 / 0.7824 GB, free: 2.195 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006425/0.4777, allocations: 0.5152 MB / 0.7829 GB, free: 1.66 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001166/0.4779, allocations: 120.9 kB / 0.7831 GB, free: 1.523 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.025e-05/0.4779, allocations: 4 kB / 0.7831 GB, free: 1.52 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.4781, allocations: 11.98 kB / 0.7831 GB, free: 1.508 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.509e-05/0.4781, allocations: 20.03 kB / 0.7831 GB, free: 1.488 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.827e-05/0.4782, allocations: 8 kB / 0.7831 GB, free: 1.48 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001545/0.4783, allocations: 144.1 kB / 0.7832 GB, free: 1.336 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4783, allocations: 0 / 0.7832 GB, free: 1.336 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003805/0.4787, allocations: 64 kB / 0.7833 GB, free: 1.273 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (loa.q[1],loa.q[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001038/0.4798, allocations: 1.054 MB / 0.7843 GB, free: 188 kB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0008082/0.4806, allocations: 430.6 kB / 0.7847 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.4806, allocations: 4.125 kB / 0.7847 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000169/0.4808, allocations: 123.8 kB / 0.7849 GB, free: 15.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.4812, allocations: 44.25 kB / 0.7849 GB, free: 15.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003885/0.4851, allocations: 2.892 MB / 0.7877 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004023/0.4855, allocations: 0.7675 MB / 0.7885 GB, free: 11.77 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001705/0.4857, allocations: 57.89 kB / 0.7885 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000127/0.4858, allocations: 77.97 kB / 0.7886 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of SimCode: time 4.11e-07/0.4858, allocations: 0 / 0.7886 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02507/0.5109, allocations: 5.104 MB / 0.7936 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.386/9.897, allocations: 3.391 kB / 0.7936 GB, free: 6.734 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)