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: translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001094/0.001094, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001117/0.001117, allocations: 194.5 kB / 16.14 MB, free: 6.66 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.339/1.339, allocations: 222.9 MB / 239.8 MB, free: 4.59 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 283.1 kB / 290.2 MB, free: 2.199 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9831/0.9831, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 98.05 kB / 0.5945 GB, free: 28.42 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1569, allocations: 86.99 MB / 0.6794 GB, free: 1.184 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003854/0.1608, allocations: 2.34 MB / 0.6817 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.1623, allocations: 0.7777 MB / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.1624, allocations: 4 kB / 0.6825 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006807/0.1631, allocations: 140.3 kB / 0.6826 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002001/0.1633, allocations: 60.45 kB / 0.6827 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000195/0.1635, allocations: 49.39 kB / 0.6827 GB, free: 13.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002835/0.1638, allocations: 195.4 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002598/0.1641, allocations: 70.23 kB / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.1642, allocations: 55.73 kB / 0.683 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.1644, allocations: 71.73 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.632e-05/0.1645, allocations: 11.94 kB / 0.6831 GB, free: 13.42 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/0.1646, allocations: 59.86 kB / 0.6832 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.357e-05/0.1647, allocations: 31.91 kB / 0.6832 GB, free: 13.33 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.966e-05/0.1648, allocations: 67.61 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.1651, allocations: 171.5 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1651, allocations: 0 / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1651, allocations: 0 / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.533e-06/0.1652, allocations: 0 / 0.6834 GB, free: 13.1 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.001068/0.1662, allocations: 498.4 kB / 0.6839 GB, free: 12.55 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.1663, allocations: 8.031 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002685/0.1666, allocations: 24.83 kB / 0.6839 GB, free: 12.52 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.1669, allocations: 221.6 kB / 0.6841 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.1669, allocations: 34.45 kB / 0.6842 GB, free: 12.23 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.167, allocations: 16.12 kB / 0.6842 GB, free: 12.21 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1673, allocations: 145.1 kB / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.306e-05/0.1673, allocations: 0 / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.1e-05/0.1673, allocations: 7.938 kB / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.284e-05/0.1673, allocations: 8 kB / 0.6843 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002013/0.1676, allocations: 91.94 kB / 0.6844 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008981/0.1685, allocations: 0.6401 MB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1687, allocations: 62.5 kB / 0.6851 GB, free: 11.18 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.478e-05/0.1688, allocations: 24.91 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.1688, allocations: 4 kB / 0.6851 GB, free: 11.14 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002126/0.169, allocations: 142.8 kB / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.1691, allocations: 0 / 0.6853 GB, free: 10.98 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003951/0.1695, allocations: 167.2 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.1696, allocations: 136.5 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.1697, allocations: 174.4 kB / 0.6857 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.1698, allocations: 29.7 kB / 0.6858 GB, free: 10.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.652e-05/0.1699, allocations: 147.7 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.379e-05/0.1699, allocations: 19.75 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.163e-05/0.17, allocations: 37.7 kB / 0.686 GB, free: 10.21 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1701, allocations: 326.8 kB / 0.6863 GB, free: 9.883 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.268e-05/0.1702, allocations: 43.92 kB / 0.6863 GB, free: 9.84 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.1703, allocations: 109.3 kB / 0.6864 GB, free: 9.699 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000265/0.1706, allocations: 234.3 kB / 0.6866 GB, free: 9.418 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1706, allocations: 4 kB / 0.6866 GB, free: 9.414 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003442/0.171, allocations: 233.2 kB / 0.6869 GB, free: 9.168 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.171, allocations: 67.45 kB / 0.6869 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.171, allocations: 7.938 kB / 0.6869 GB, free: 9.082 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.1711, allocations: 4 kB / 0.6869 GB, free: 9.078 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.1712, allocations: 31.92 kB / 0.687 GB, free: 9.047 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.1712, allocations: 8.062 kB / 0.687 GB, free: 9.039 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1713, allocations: 23.83 kB / 0.687 GB, free: 9.016 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.019e-05/0.1714, allocations: 12 kB / 0.687 GB, free: 9.004 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.0001696/0.1715, allocations: 169.8 kB / 0.6872 GB, free: 8.824 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.709e-05/0.1716, allocations: 15.81 kB / 0.6872 GB, free: 8.809 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.1716, allocations: 13.34 kB / 0.6872 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1716, allocations: 4 kB / 0.6872 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.1716, allocations: 0 / 0.6872 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1717, allocations: 0 / 0.6872 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001895/0.1718, allocations: 209.6 kB / 0.6874 GB, free: 8.539 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1719, allocations: 3.938 kB / 0.6874 GB, free: 8.535 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.953e-05/0.172, allocations: 11.98 kB / 0.6874 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.172, allocations: 0 / 0.6874 GB, free: 8.523 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.172, allocations: 15.94 kB / 0.6874 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.172, allocations: 0 / 0.6874 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.172, allocations: 0 / 0.6874 GB, free: 8.508 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003877/0.1724, allocations: 214.6 kB / 0.6876 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.754e-05/0.1725, allocations: 85.05 kB / 0.6877 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.1725, allocations: 11.88 kB / 0.6877 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-05/0.1726, allocations: 16.05 kB / 0.6877 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.443e-05/0.1727, allocations: 15.98 kB / 0.6878 GB, free: 8.129 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.1727, allocations: 0 / 0.6878 GB, free: 8.129 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.1728, allocations: 136.3 kB / 0.6879 GB, free: 7.996 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1728, allocations: 0 / 0.6879 GB, free: 7.996 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002436/0.173, allocations: 35.94 kB / 0.6879 GB, free: 7.961 MB / 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.0001099/0.1732, allocations: 103.3 kB / 0.688 GB, free: 7.852 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.1735, allocations: 215 kB / 0.6882 GB, free: 7.617 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1735, allocations: 3.938 kB / 0.6882 GB, free: 7.613 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001255/0.1736, allocations: 107.4 kB / 0.6883 GB, free: 7.496 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002497/0.1739, allocations: 19.91 kB / 0.6884 GB, free: 7.477 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000639/0.1745, allocations: 336.5 kB / 0.6887 GB, free: 7.121 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.1748, allocations: 0.716 MB / 0.6894 GB, free: 6.379 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.668e-05/0.1749, allocations: 20.62 kB / 0.6894 GB, free: 6.359 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.333e-05/0.1749, allocations: 11.44 kB / 0.6894 GB, free: 6.348 MB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1749, allocations: 0 / 0.6894 GB, free: 6.348 MB / 494.1 MB Notification: Performance of Templates: time 0.004358/0.1793, allocations: 1.247 MB / 0.6906 GB, free: 5.121 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (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 & ./BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)