Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor,fileNamePrefix="IBPSA_latest_IBPSA_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.001073/0.001073, allocations: 103.9 kB / 16.4 MB, free: 6.438 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.001589/0.001589, allocations: 193.2 kB / 17.34 MB, free: 5.703 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8055/0.8055, allocations: 122.9 MB / 414.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 71.45 kB / 0.568 GB, free: 29.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1507, allocations: 77.93 MB / 0.6441 GB, free: 9.543 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor): time 0.004766/0.1555, allocations: 3.065 MB / 0.6471 GB, free: 6.465 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.1583, allocations: 1.722 MB / 0.6487 GB, free: 4.734 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001725/0.1585, allocations: 4 kB / 0.6487 GB, free: 4.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.1596, allocations: 337.4 kB / 0.6491 GB, free: 4.402 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005348/0.1601, allocations: 215.1 kB / 0.6493 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.1606, allocations: 175.5 kB / 0.6494 GB, free: 4.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.161, allocations: 323 kB / 0.6497 GB, free: 3.703 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003858/0.1614, allocations: 237 kB / 0.65 GB, free: 3.465 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.1617, allocations: 131.6 kB / 0.6501 GB, free: 3.336 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003129/0.162, allocations: 167.4 kB / 0.6503 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.162, allocations: 20 kB / 0.6503 GB, free: 3.152 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003902/0.1624, allocations: 247.5 kB / 0.6505 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001117/0.1626, allocations: 103.7 kB / 0.6506 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.1627, allocations: 119.5 kB / 0.6507 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005415/0.1632, allocations: 422.5 kB / 0.6511 GB, free: 2.277 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1633, allocations: 0 / 0.6511 GB, free: 2.277 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1633, allocations: 3.938 kB / 0.6511 GB, free: 2.273 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1633, allocations: 0 / 0.6511 GB, free: 2.273 MB / 494.1 MB 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.0009605/0.1643, allocations: 0.5591 MB / 0.6517 GB, free: 1.664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.1643, allocations: 12.61 kB / 0.6517 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.373e-05/0.1644, allocations: 62.72 kB / 0.6517 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007539/0.1651, allocations: 92.69 kB / 0.6518 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000339/0.1655, allocations: 267.8 kB / 0.6521 GB, free: 1.191 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.1655, allocations: 12.81 kB / 0.6521 GB, free: 1.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.85e-05/0.1656, allocations: 32.55 kB / 0.6521 GB, free: 1.148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005496/0.1662, allocations: 376.9 kB / 0.6525 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.426e-05/0.1662, allocations: 0 / 0.6525 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.1662, allocations: 8 kB / 0.6525 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001017/0.1663, allocations: 36.41 kB / 0.6525 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004604/0.1668, allocations: 305.5 kB / 0.6528 GB, free: 428 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001755/0.1686, allocations: 1.522 MB / 0.6543 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004183/0.169, allocations: 230.4 kB / 0.6545 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.1692, allocations: 112.8 kB / 0.6546 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001345/0.1693, allocations: 97.08 kB / 0.6547 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.1693, allocations: 30.56 kB / 0.6548 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.362e-06/0.1693, allocations: 0 / 0.6548 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19): time 0.001213/0.1706, allocations: 0.7942 MB / 0.6555 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.1706, allocations: 59.39 kB / 0.6556 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.1708, allocations: 194.6 kB / 0.6558 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1708, allocations: 29.7 kB / 0.6558 GB, free: 13.1 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.907e-05/0.1709, allocations: 156.2 kB / 0.656 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.668e-05/0.171, allocations: 79.31 kB / 0.656 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.775e-05/0.1711, allocations: 61.62 kB / 0.6561 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1713, allocations: 330.8 kB / 0.6564 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.1714, allocations: 107.9 kB / 0.6565 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002242/0.1717, allocations: 173.9 kB / 0.6567 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003864/0.1721, allocations: 293.3 kB / 0.657 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1721, allocations: 4 kB / 0.657 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000779/0.1729, allocations: 417.9 kB / 0.6574 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.1729, allocations: 4.188 kB / 0.6574 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.1729, allocations: 11.94 kB / 0.6574 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.1733, allocations: 92.77 kB / 0.6575 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.1736, allocations: 47.95 kB / 0.6575 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001934/0.1756, allocations: 1.887 MB / 0.6593 GB, free: 9.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.1758, allocations: 23.91 kB / 0.6594 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.197e-05/0.1758, allocations: 12 kB / 0.6594 GB, free: 9.223 MB / 0.4981 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.0001564/0.176, allocations: 150.4 kB / 0.6595 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.304e-05/0.1761, allocations: 23.86 kB / 0.6595 GB, free: 9.043 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004803/0.1765, allocations: 306 kB / 0.6598 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1766, allocations: 0 / 0.6598 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-06/0.1766, allocations: 3.938 kB / 0.6598 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1766, allocations: 3.938 kB / 0.6598 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.1776, allocations: 0.6991 MB / 0.6605 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.514e-06/0.1776, allocations: 0 / 0.6605 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.1779, allocations: 63.95 kB / 0.6606 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.1779, allocations: 3.938 kB / 0.6606 GB, free: 7.906 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.1779, allocations: 8 kB / 0.6606 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.155e-06/0.1779, allocations: 0 / 0.6606 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1779, allocations: 0 / 0.6606 GB, free: 7.898 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000594/0.1785, allocations: 0.5164 MB / 0.6611 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.1787, allocations: 125 kB / 0.6612 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.472e-05/0.1787, allocations: 0 / 0.6612 GB, free: 7.219 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001862/0.1789, allocations: 15.98 kB / 0.6612 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.1789, allocations: 11.98 kB / 0.6613 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.453e-05/0.179, allocations: 8 kB / 0.6613 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001493/0.1791, allocations: 144 kB / 0.6614 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1791, allocations: 0 / 0.6614 GB, free: 7.039 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003806/0.1795, allocations: 68 kB / 0.6615 GB, free: 6.973 MB / 0.4981 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.0009281/0.1805, allocations: 1.067 MB / 0.6625 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0007302/0.1812, allocations: 438.1 kB / 0.6629 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1812, allocations: 0 / 0.6629 GB, free: 5.438 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001665/0.1814, allocations: 121.3 kB / 0.663 GB, free: 5.32 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003821/0.1818, allocations: 31.98 kB / 0.6631 GB, free: 5.289 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003858/0.1856, allocations: 2.902 MB / 0.6659 GB, free: 2.254 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.1861, allocations: 0.7754 MB / 0.6667 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001722/0.1862, allocations: 53.91 kB / 0.6667 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.1864, allocations: 67.42 kB / 0.6668 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.1864, allocations: 0 / 0.6668 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02637/0.2128, allocations: 5.079 MB / 0.6717 GB, free: 12.4 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.264/9.477, allocations: 10.25 kB / 0.6717 GB, free: 12.39 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Sensors_Examples_GeneralizedSensor.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Sensors.Examples.GeneralizedSensor.pipe 2>&1)