Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_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.00493/0.00493, allocations: 100.2 kB / 15.73 MB, free: 6.445 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.00108/0.00108, allocations: 195.1 kB / 16.67 MB, free: 6.352 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002202/0.002202, allocations: 275 kB / 290.8 MB, free: 1.949 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9422/0.9422, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 95.84 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.1563, allocations: 86.98 MB / 0.7659 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003756/0.1601, allocations: 2.295 MB / 0.7681 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001408/0.1615, allocations: 0.7793 MB / 0.7689 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001251/0.1617, allocations: 4 kB / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006198/0.1623, allocations: 151.3 kB / 0.769 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002096/0.1625, allocations: 63.61 kB / 0.7691 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001756/0.1627, allocations: 51.88 kB / 0.7691 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002328/0.163, allocations: 167.5 kB / 0.7693 GB, free: 5.449 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.1633, allocations: 105 kB / 0.7694 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000138/0.1634, allocations: 71.7 kB / 0.7695 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001712/0.1636, allocations: 71.69 kB / 0.7695 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.1636, allocations: 12 kB / 0.7695 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.1638, allocations: 51.89 kB / 0.7696 GB, free: 5.145 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.1638, allocations: 35.89 kB / 0.7696 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 8.471e-05/0.1639, allocations: 63.67 kB / 0.7697 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.1642, allocations: 167.3 kB / 0.7698 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1642, allocations: 0 / 0.7698 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.1642, allocations: 0 / 0.7698 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.1642, allocations: 4 kB / 0.7699 GB, free: 4.879 MB / 0.5606 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.0007188/0.1649, allocations: 0.4944 MB / 0.7703 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.165, allocations: 8.031 kB / 0.7703 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.644e-05/0.165, allocations: 50.73 kB / 0.7704 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/0.1653, allocations: 32.77 kB / 0.7704 GB, free: 4.227 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.1655, allocations: 204.2 kB / 0.7706 GB, free: 3.988 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/0.1656, allocations: 38.39 kB / 0.7707 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.426e-05/0.1656, allocations: 15.94 kB / 0.7707 GB, free: 3.93 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.1659, allocations: 153.8 kB / 0.7708 GB, free: 3.766 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.328e-06/0.166, allocations: 4 kB / 0.7708 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.166, allocations: 4 kB / 0.7708 GB, free: 3.758 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.166, allocations: 4 kB / 0.7708 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002067/0.1662, allocations: 83.89 kB / 0.7709 GB, free: 3.672 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008566/0.1671, allocations: 0.6442 MB / 0.7715 GB, free: 2.965 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002246/0.1673, allocations: 54.55 kB / 0.7716 GB, free: 2.902 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.411e-05/0.1674, allocations: 28.92 kB / 0.7716 GB, free: 2.871 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.1674, allocations: 3.984 kB / 0.7716 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002762/0.1677, allocations: 142.9 kB / 0.7718 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 2.185e-06/0.1677, allocations: 0 / 0.7718 GB, free: 2.703 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0003886/0.1681, allocations: 167.4 kB / 0.7719 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.299e-05/0.1682, allocations: 136.5 kB / 0.772 GB, free: 2.363 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000157/0.1684, allocations: 187.1 kB / 0.7722 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.187e-05/0.1684, allocations: 29.69 kB / 0.7723 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.844e-05/0.1685, allocations: 136.1 kB / 0.7724 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.504e-05/0.1685, allocations: 27.78 kB / 0.7724 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.879e-05/0.1686, allocations: 33.72 kB / 0.7724 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.1687, allocations: 330.8 kB / 0.7728 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.16e-05/0.1688, allocations: 35.98 kB / 0.7728 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.1689, allocations: 111.4 kB / 0.7729 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002421/0.1692, allocations: 222.4 kB / 0.7731 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1692, allocations: 0 / 0.7731 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003549/0.1696, allocations: 252.6 kB / 0.7733 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.786e-05/0.1696, allocations: 67.33 kB / 0.7734 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.1696, allocations: 0 / 0.7734 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1696, allocations: 4 kB / 0.7734 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.1698, allocations: 36.23 kB / 0.7735 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.1698, allocations: 12.06 kB / 0.7735 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001434/0.1699, allocations: 23.88 kB / 0.7735 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.17, allocations: 8 kB / 0.7735 GB, free: 0.7227 MB / 0.5606 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.0001307/0.1701, allocations: 170.5 kB / 0.7737 GB, free: 0.543 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.89e-05/0.1701, allocations: 19.84 kB / 0.7737 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.434e-05/0.1702, allocations: 17.44 kB / 0.7737 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1702, allocations: 3.984 kB / 0.7737 GB, free: 0.5 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.1702, allocations: 4 kB / 0.7737 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1702, allocations: 4 kB / 0.7737 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001677/0.1704, allocations: 217.5 kB / 0.7739 GB, free: 236 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1704, allocations: 0 / 0.7739 GB, free: 236 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.964e-05/0.1705, allocations: 8 kB / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1705, allocations: 3.938 kB / 0.7739 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.59e-05/0.1705, allocations: 12 kB / 0.7739 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1705, allocations: 0 / 0.7739 GB, free: 212 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.225e-06/0.1705, allocations: 3.938 kB / 0.7739 GB, free: 208 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3159/0.4864, allocations: 211.2 kB / 0.7741 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/0.4865, allocations: 87.47 kB / 0.7742 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.4866, allocations: 6.234 kB / 0.7742 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.4867, allocations: 13.55 kB / 0.7742 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.448e-05/0.4868, allocations: 9.5 kB / 0.7742 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.4868, allocations: 2.891 kB / 0.7743 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001203/0.4869, allocations: 133.1 kB / 0.7744 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.31e-07/0.4869, allocations: 2.281 kB / 0.7744 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003448/0.4873, allocations: 26.78 kB / 0.7744 GB, free: 12.71 MB / 0.5606 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.0005858/0.4879, allocations: 0.757 MB / 0.7751 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003291/0.4882, allocations: 216 kB / 0.7754 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4882, allocations: 0.8438 kB / 0.7754 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.4884, allocations: 107.1 kB / 0.7755 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.4886, allocations: 19.62 kB / 0.7755 GB, free: 11.91 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001979/0.4906, allocations: 1.963 MB / 0.7774 GB, free: 10.55 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001315/0.4908, allocations: 0.7105 MB / 0.7781 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 8.344e-05/0.4908, allocations: 20.66 kB / 0.7781 GB, free: 9.859 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.109e-05/0.4909, allocations: 37.38 kB / 0.7781 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of SimCode: time 1.262e-06/0.4909, allocations: 0 / 0.7781 GB, free: 9.852 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02109/0.512, allocations: 3.142 MB / 0.7812 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.928, allocations: 7.25 kB / 0.7812 GB, free: 9.469 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)