Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL",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.001683/0.001683, allocations: 107 kB / 16.4 MB, free: 6.516 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.001775/0.001775, allocations: 193.2 kB / 17.34 MB, free: 5.727 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7519/0.7519, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 62.89 kB / 0.5679 GB, free: 28.95 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.1406, allocations: 77.94 MB / 0.644 GB, free: 9.59 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004015/0.1447, allocations: 2.291 MB / 0.6463 GB, free: 7.289 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.1461, allocations: 0.7793 MB / 0.647 GB, free: 6.504 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1462, allocations: 0 / 0.647 GB, free: 6.504 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006266/0.1469, allocations: 159.3 kB / 0.6472 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.1471, allocations: 55.67 kB / 0.6472 GB, free: 6.293 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001816/0.1473, allocations: 59.81 kB / 0.6473 GB, free: 6.234 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002559/0.1476, allocations: 159.5 kB / 0.6474 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.1478, allocations: 97.28 kB / 0.6475 GB, free: 5.984 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.148, allocations: 67.77 kB / 0.6476 GB, free: 5.918 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.1481, allocations: 71.67 kB / 0.6477 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.435e-05/0.1482, allocations: 12 kB / 0.6477 GB, free: 5.836 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001209/0.1483, allocations: 55.89 kB / 0.6477 GB, free: 5.781 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.958e-05/0.1483, allocations: 35.91 kB / 0.6478 GB, free: 5.746 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.7e-05/0.1484, allocations: 67.66 kB / 0.6478 GB, free: 5.68 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002653/0.1487, allocations: 171.3 kB / 0.648 GB, free: 5.512 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1487, allocations: 0 / 0.648 GB, free: 5.512 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1487, allocations: 4 kB / 0.648 GB, free: 5.508 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.037e-06/0.1487, allocations: 3.938 kB / 0.648 GB, free: 5.504 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007228/0.1495, allocations: 498.3 kB / 0.6485 GB, free: 4.957 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.1495, allocations: 12.62 kB / 0.6485 GB, free: 4.945 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.47e-05/0.1496, allocations: 46.73 kB / 0.6485 GB, free: 4.891 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002299/0.1498, allocations: 24.83 kB / 0.6486 GB, free: 4.867 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002448/0.1501, allocations: 208.1 kB / 0.6488 GB, free: 4.625 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.327e-05/0.1501, allocations: 42.45 kB / 0.6488 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.1502, allocations: 15.94 kB / 0.6488 GB, free: 4.562 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1505, allocations: 145.2 kB / 0.6489 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1505, allocations: 0 / 0.6489 GB, free: 4.406 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.928e-05/0.1505, allocations: 3.984 kB / 0.6489 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1506, allocations: 11.98 kB / 0.649 GB, free: 4.391 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1508, allocations: 87.89 kB / 0.649 GB, free: 4.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008525/0.1516, allocations: 0.6364 MB / 0.6497 GB, free: 3.602 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002381/0.1519, allocations: 62.44 kB / 0.6497 GB, free: 3.531 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.747e-05/0.152, allocations: 36.91 kB / 0.6498 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.152, allocations: 0 / 0.6498 GB, free: 3.492 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002001/0.1522, allocations: 150.9 kB / 0.6499 GB, free: 3.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.1522, allocations: 0 / 0.6499 GB, free: 3.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003776/0.1526, allocations: 159.2 kB / 0.6501 GB, free: 3.152 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.941e-05/0.1527, allocations: 136.5 kB / 0.6502 GB, free: 2.988 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.1529, allocations: 186.3 kB / 0.6504 GB, free: 2.797 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.1529, allocations: 29.7 kB / 0.6504 GB, free: 2.762 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.153, allocations: 144 kB / 0.6505 GB, free: 2.613 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.153, allocations: 23.8 kB / 0.6506 GB, free: 2.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-05/0.1531, allocations: 37.7 kB / 0.6506 GB, free: 2.547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.1532, allocations: 326.8 kB / 0.6509 GB, free: 2.219 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.861e-05/0.1533, allocations: 35.97 kB / 0.6509 GB, free: 2.184 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.1535, allocations: 109.4 kB / 0.651 GB, free: 2.043 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002638/0.1537, allocations: 234.3 kB / 0.6513 GB, free: 1.762 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1537, allocations: 0 / 0.6513 GB, free: 1.762 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003675/0.1541, allocations: 248.6 kB / 0.6515 GB, free: 1.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.779e-05/0.1542, allocations: 68.89 kB / 0.6516 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.1542, allocations: 4 kB / 0.6516 GB, free: 1.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1542, allocations: 8.344 kB / 0.6516 GB, free: 1.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.1544, allocations: 31.98 kB / 0.6516 GB, free: 1.379 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.1544, allocations: 3.938 kB / 0.6516 GB, free: 1.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001445/0.1545, allocations: 27.88 kB / 0.6516 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.1545, allocations: 8 kB / 0.6516 GB, free: 1.34 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * 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 prepare postOptimizeDAE: time 0.0001411/0.1547, allocations: 165.4 kB / 0.6518 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.668e-05/0.1547, allocations: 19.84 kB / 0.6518 GB, free: 1.145 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.212e-05/0.1548, allocations: 13.41 kB / 0.6518 GB, free: 1.129 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1548, allocations: 7.938 kB / 0.6518 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1548, allocations: 0 / 0.6518 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.1548, allocations: 3.984 kB / 0.6518 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.155, allocations: 205.6 kB / 0.652 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.155, allocations: 0 / 0.652 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.393e-05/0.1551, allocations: 15.92 kB / 0.6521 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/0.1551, allocations: 3.938 kB / 0.6521 GB, free: 0.8477 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.1551, allocations: 4 kB / 0.6521 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.1551, allocations: 0 / 0.6521 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1551, allocations: 0 / 0.6521 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.1555, allocations: 223 kB / 0.6523 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.815e-05/0.1556, allocations: 88.95 kB / 0.6524 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.556e-05/0.1556, allocations: 15.95 kB / 0.6524 GB, free: 492 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.1557, allocations: 8 kB / 0.6524 GB, free: 484 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.234e-05/0.1558, allocations: 11.98 kB / 0.6524 GB, free: 472 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-06/0.1558, allocations: 0 / 0.6524 GB, free: 472 kB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001057/0.1559, allocations: 140.3 kB / 0.6525 GB, free: 332 kB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1559, allocations: 4 kB / 0.6525 GB, free: 328 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002543/0.1562, allocations: 24 kB / 0.6526 GB, free: 304 kB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * 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.000649/0.1568, allocations: 0.7508 MB / 0.6533 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003209/0.1572, allocations: 222.6 kB / 0.6535 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1572, allocations: 0 / 0.6535 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001306/0.1573, allocations: 103.4 kB / 0.6536 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.1575, allocations: 28.38 kB / 0.6536 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002224/0.1598, allocations: 1.956 MB / 0.6555 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002878/0.1601, allocations: 0.7156 MB / 0.6562 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.726e-05/0.1602, allocations: 20.62 kB / 0.6563 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.44e-05/0.1603, allocations: 47.36 kB / 0.6563 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1603, allocations: 0 / 0.6563 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0219/0.1822, allocations: 3.116 MB / 0.6593 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/7.809, allocations: 12.25 kB / 0.6594 GB, free: 9.184 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 IBPSA_latest_IBPSA_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)