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.00183/0.00183, allocations: 107.4 kB / 16.41 MB, free: 6.43 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.001972/0.001972, allocations: 189.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.595/1.595, 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.8189/0.8189, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 66.86 kB / 0.5735 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1544, allocations: 78.86 MB / 0.6505 GB, free: 3.645 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004996/0.1595, allocations: 2.3 MB / 0.6528 GB, free: 1.332 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.1611, allocations: 0.7832 MB / 0.6535 GB, free: 0.543 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.1613, allocations: 3.938 kB / 0.6535 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000791/0.1621, allocations: 151.3 kB / 0.6537 GB, free: 400 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.1624, allocations: 55.67 kB / 0.6537 GB, free: 344 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002098/0.1626, allocations: 63.8 kB / 0.6538 GB, free: 280 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003962/0.163, allocations: 151.5 kB / 0.6539 GB, free: 128 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002771/0.1633, allocations: 101.3 kB / 0.654 GB, free: 28 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002787/0.1636, allocations: 71.89 kB / 0.6541 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001961/0.1638, allocations: 67.67 kB / 0.6542 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.261e-05/0.1638, allocations: 12 kB / 0.6542 GB, free: 15.88 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001485/0.164, allocations: 55.77 kB / 0.6542 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.003e-05/0.1641, allocations: 35.91 kB / 0.6543 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.1642, allocations: 67.61 kB / 0.6543 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003049/0.1645, allocations: 167.3 kB / 0.6545 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1645, allocations: 0 / 0.6545 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.203e-06/0.1645, allocations: 0 / 0.6545 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.133e-05/0.1645, allocations: 0 / 0.6545 GB, free: 15.56 MB / 0.4981 GB 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.0008712/0.1654, allocations: 0.4983 MB / 0.655 GB, free: 15 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1655, allocations: 12.03 kB / 0.655 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.556e-05/0.1655, allocations: 42.75 kB / 0.655 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002179/0.1657, allocations: 24.83 kB / 0.655 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000284/0.166, allocations: 216.1 kB / 0.6553 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.904e-05/0.1661, allocations: 34.45 kB / 0.6553 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.243e-05/0.1662, allocations: 11.94 kB / 0.6553 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004107/0.1666, allocations: 151.4 kB / 0.6554 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.1666, allocations: 3.938 kB / 0.6554 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.1666, allocations: 8 kB / 0.6555 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.1666, allocations: 4 kB / 0.6555 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003123/0.167, allocations: 83.94 kB / 0.6555 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009846/0.168, allocations: 0.6519 MB / 0.6562 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.1682, allocations: 58.55 kB / 0.6562 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.345e-05/0.1683, allocations: 32.84 kB / 0.6563 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.211e-05/0.1683, allocations: 4 kB / 0.6563 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.1686, allocations: 138.9 kB / 0.6564 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.1686, allocations: 0 / 0.6564 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0004082/0.169, allocations: 167.1 kB / 0.6566 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.848e-05/0.1691, allocations: 136.5 kB / 0.6567 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.1693, allocations: 182.3 kB / 0.6569 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.1693, allocations: 29.7 kB / 0.6569 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1695, allocations: 144 kB / 0.657 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.1695, allocations: 23.8 kB / 0.657 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.142e-05/0.1696, allocations: 49.64 kB / 0.6571 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1697, allocations: 318.8 kB / 0.6574 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.1698, allocations: 35.98 kB / 0.6574 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001499/0.17, allocations: 115.3 kB / 0.6575 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.1703, allocations: 230.3 kB / 0.6578 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.1703, allocations: 0 / 0.6578 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003844/0.1707, allocations: 244.7 kB / 0.658 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.576e-05/0.1708, allocations: 67.34 kB / 0.6581 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.1708, allocations: 4 kB / 0.6581 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.1708, allocations: 4 kB / 0.6581 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001267/0.1709, allocations: 31.92 kB / 0.6581 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.171, allocations: 8.297 kB / 0.6581 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000136/0.1711, allocations: 23.89 kB / 0.6581 GB, free: 11.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.1711, allocations: 8 kB / 0.6581 GB, free: 11.39 MB / 0.4981 GB 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.0001516/0.1713, allocations: 164 kB / 0.6583 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.995e-05/0.1713, allocations: 19.84 kB / 0.6583 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.165e-05/0.1714, allocations: 17.39 kB / 0.6583 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1714, allocations: 0 / 0.6583 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.1714, allocations: 0 / 0.6583 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1714, allocations: 4 kB / 0.6583 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002093/0.1716, allocations: 213.6 kB / 0.6585 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1716, allocations: 3.938 kB / 0.6585 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.126e-05/0.1717, allocations: 11.98 kB / 0.6586 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.1717, allocations: 7.938 kB / 0.6586 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.1717, allocations: 4 kB / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1717, allocations: 0 / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1717, allocations: 0 / 0.6586 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004121/0.1722, allocations: 222.6 kB / 0.6588 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.254e-05/0.1722, allocations: 92.89 kB / 0.6589 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.1723, allocations: 7.969 kB / 0.6589 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.567e-05/0.1724, allocations: 11.98 kB / 0.6589 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.1724, allocations: 11.98 kB / 0.6589 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-06/0.1724, allocations: 0 / 0.6589 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001235/0.1726, allocations: 131.2 kB / 0.659 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1726, allocations: 0 / 0.659 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002477/0.1729, allocations: 32.06 kB / 0.6591 GB, free: 10.35 MB / 0.4981 GB 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.000782/0.1737, allocations: 0.7606 MB / 0.6598 GB, free: 9.559 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003614/0.1741, allocations: 215.3 kB / 0.66 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1741, allocations: 0 / 0.66 GB, free: 9.324 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.1742, allocations: 111.3 kB / 0.6601 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002564/0.1745, allocations: 21.81 kB / 0.6601 GB, free: 9.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002436/0.177, allocations: 1.956 MB / 0.662 GB, free: 7.074 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1774, allocations: 0.7119 MB / 0.6627 GB, free: 6.336 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.562e-05/0.1775, allocations: 28.61 kB / 0.6628 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.015e-05/0.1776, allocations: 31.44 kB / 0.6628 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of SimCode: time 4.81e-07/0.1776, allocations: 0 / 0.6628 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02696/0.2046, allocations: 3.116 MB / 0.6658 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.021/8.225, allocations: 17.19 kB / 0.6658 GB, free: 3.242 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)