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.00443/0.00443, allocations: 101.5 kB / 15.73 MB, free: 6.039 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.001009/0.001009, allocations: 200.1 kB / 16.68 MB, free: 5.965 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.302/1.302, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002015/0.002015, allocations: 282.6 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9381/0.9381, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001587/0.001587, allocations: 87.86 kB / 0.6814 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.1735, allocations: 86.97 MB / 0.7664 GB, free: 8.461 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003301/0.1768, allocations: 2.299 MB / 0.7686 GB, free: 6.152 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.178, allocations: 0.7793 MB / 0.7694 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.735e-05/0.1781, allocations: 0 / 0.7694 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0005463/0.1786, allocations: 151.4 kB / 0.7695 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001669/0.1788, allocations: 63.59 kB / 0.7696 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001452/0.179, allocations: 51.89 kB / 0.7696 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.1792, allocations: 171.4 kB / 0.7698 GB, free: 4.938 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.1795, allocations: 97 kB / 0.7699 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.1796, allocations: 71.77 kB / 0.7699 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.1797, allocations: 75.61 kB / 0.77 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.329e-05/0.1798, allocations: 12 kB / 0.77 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.1799, allocations: 51.89 kB / 0.7701 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.482e-05/0.1799, allocations: 35.91 kB / 0.7701 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.7e-05/0.18, allocations: 67.66 kB / 0.7702 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.1803, allocations: 171.3 kB / 0.7703 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1803, allocations: 0 / 0.7703 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.031e-06/0.1803, allocations: 0 / 0.7703 GB, free: 4.367 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.1803, allocations: 4 kB / 0.7703 GB, free: 4.363 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.0006398/0.1809, allocations: 494.3 kB / 0.7708 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.181, allocations: 15.97 kB / 0.7708 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001946/0.1812, allocations: 24.83 kB / 0.7708 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002286/0.1814, allocations: 212.2 kB / 0.7711 GB, free: 3.535 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.798e-05/0.1815, allocations: 38.45 kB / 0.7711 GB, free: 3.492 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.1815, allocations: 12.12 kB / 0.7711 GB, free: 3.48 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002653/0.1818, allocations: 154.2 kB / 0.7712 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.337e-06/0.1818, allocations: 0 / 0.7712 GB, free: 3.316 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.732e-05/0.1818, allocations: 8 kB / 0.7713 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.536e-05/0.1819, allocations: 4 kB / 0.7713 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.1821, allocations: 87.83 kB / 0.7713 GB, free: 3.219 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007855/0.1828, allocations: 0.6403 MB / 0.772 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002098/0.1831, allocations: 58.55 kB / 0.772 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.269e-05/0.1832, allocations: 28.92 kB / 0.7721 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.612e-05/0.1832, allocations: 7.984 kB / 0.7721 GB, free: 2.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001797/0.1834, allocations: 138.7 kB / 0.7722 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.1834, allocations: 0 / 0.7722 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0003466/0.1837, allocations: 159.4 kB / 0.7723 GB, free: 2.082 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.81e-05/0.1838, allocations: 136.5 kB / 0.7725 GB, free: 1.918 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001526/0.184, allocations: 183.1 kB / 0.7726 GB, free: 1.727 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.016e-05/0.184, allocations: 41.69 kB / 0.7727 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.82e-05/0.1841, allocations: 132.1 kB / 0.7728 GB, free: 1.547 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.1841, allocations: 31.77 kB / 0.7728 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.572e-05/0.1842, allocations: 33.72 kB / 0.7729 GB, free: 1.477 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.1843, allocations: 326.8 kB / 0.7732 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.946e-05/0.1844, allocations: 35.98 kB / 0.7732 GB, free: 1.113 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001228/0.1845, allocations: 115.8 kB / 0.7733 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002338/0.1847, allocations: 230.3 kB / 0.7736 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1848, allocations: 0 / 0.7736 GB, free: 0.6914 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003271/0.1851, allocations: 240.7 kB / 0.7738 GB, free: 448 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/0.1851, allocations: 67.39 kB / 0.7738 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.1851, allocations: 7.938 kB / 0.7739 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1852, allocations: 4 kB / 0.7739 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.1853, allocations: 31.92 kB / 0.7739 GB, free: 324 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.734e-06/0.1853, allocations: 4.312 kB / 0.7739 GB, free: 320 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001226/0.1854, allocations: 23.88 kB / 0.7739 GB, free: 296 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.1855, allocations: 12 kB / 0.7739 GB, free: 284 kB / 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.0001221/0.1856, allocations: 165.2 kB / 0.7741 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.483e-05/0.1856, allocations: 19.89 kB / 0.7741 GB, free: 84 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.851e-05/0.1856, allocations: 21.33 kB / 0.7741 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.1857, allocations: 0 / 0.7741 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1857, allocations: 0 / 0.7741 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.1857, allocations: 0 / 0.7741 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3636/0.5493, allocations: 218.4 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.5493, allocations: 1.656 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.5495, allocations: 10.12 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.541e-06/0.5495, allocations: 0.8438 kB / 0.7743 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.949e-05/0.5495, allocations: 8.328 kB / 0.7744 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.5495, allocations: 0.8125 kB / 0.7744 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.5495, allocations: 2.516 kB / 0.7744 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004405/0.55, allocations: 216.4 kB / 0.7746 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.55, allocations: 89.81 kB / 0.7746 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.459e-05/0.5501, allocations: 6.641 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.555e-05/0.5502, allocations: 10.86 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.5502, allocations: 11.7 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.5502, allocations: 2.906 kB / 0.7747 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000127/0.5504, allocations: 133.9 kB / 0.7748 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.42e-07/0.5504, allocations: 0.9375 kB / 0.7748 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003042/0.5507, allocations: 33.34 kB / 0.7748 GB, free: 14.75 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.000106/0.5508, allocations: 100.8 kB / 0.7749 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003334/0.5512, allocations: 218.3 kB / 0.7751 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5512, allocations: 0.9062 kB / 0.7751 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001272/0.5513, allocations: 104.6 kB / 0.7752 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.5516, allocations: 19.95 kB / 0.7753 GB, free: 14.47 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006094/0.5522, allocations: 293.2 kB / 0.7755 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001548/0.5523, allocations: 0.7109 MB / 0.7762 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.893e-05/0.5524, allocations: 22.05 kB / 0.7763 GB, free: 13.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.313e-05/0.5525, allocations: 12.56 kB / 0.7763 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of SimCode: time 1.352e-06/0.5525, allocations: 2.625 kB / 0.7763 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of Templates: time 0.004398/0.5569, allocations: 1.425 MB / 0.7777 GB, free: 13.57 MB / 0.5606 GB 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)