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.001399/0.001399, allocations: 108.2 kB / 16.41 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.001374/0.001374, allocations: 187.9 kB / 17.35 MB, free: 5.738 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.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002088/0.002088, allocations: 296.1 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9809/0.9809, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 95.84 kB / 0.6821 GB, free: 7.008 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4534/0.4552, allocations: 86.98 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004009/0.4592, allocations: 2.304 MB / 0.7693 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001253/0.4605, allocations: 0.7869 MB / 0.77 GB, free: 0.8242 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.4606, allocations: 4 kB / 0.77 GB, free: 0.8203 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0006458/0.4613, allocations: 143.4 kB / 0.7702 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.4615, allocations: 63.59 kB / 0.7702 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.4616, allocations: 55.88 kB / 0.7703 GB, free: 0.5625 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002546/0.4619, allocations: 163.4 kB / 0.7704 GB, free: 412 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002403/0.4622, allocations: 93.05 kB / 0.7705 GB, free: 320 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/0.4623, allocations: 67.77 kB / 0.7706 GB, free: 252 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.4625, allocations: 71.62 kB / 0.7707 GB, free: 180 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.725e-05/0.4625, allocations: 12 kB / 0.7707 GB, free: 168 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001211/0.4626, allocations: 55.88 kB / 0.7707 GB, free: 112 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.225e-05/0.4627, allocations: 39.91 kB / 0.7708 GB, free: 72 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 8.049e-05/0.4628, allocations: 67.67 kB / 0.7708 GB, free: 4 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000255/0.463, allocations: 166 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.4631, allocations: 0 / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.372e-06/0.4631, allocations: 0 / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.989e-06/0.4631, allocations: 0 / 0.771 GB, free: 15.84 MB / 0.545 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.0006931/0.4638, allocations: 490.6 kB / 0.7715 GB, free: 15.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.4638, allocations: 12.03 kB / 0.7715 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/0.464, allocations: 28.73 kB / 0.7715 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.4643, allocations: 208.1 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.4643, allocations: 42.44 kB / 0.7717 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.4644, allocations: 16.12 kB / 0.7718 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002728/0.4647, allocations: 144.1 kB / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.4647, allocations: 0 / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.4647, allocations: 8 kB / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.4647, allocations: 8 kB / 0.7719 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.4649, allocations: 87.92 kB / 0.772 GB, free: 14.7 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008151/0.4658, allocations: 0.6401 MB / 0.7726 GB, free: 14 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.466, allocations: 54.56 kB / 0.7727 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.541e-05/0.4661, allocations: 32.91 kB / 0.7727 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.4661, allocations: 0 / 0.7727 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001925/0.4663, allocations: 142.8 kB / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.713e-06/0.4663, allocations: 0 / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.000369/0.4667, allocations: 167.2 kB / 0.773 GB, free: 13.56 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.983e-05/0.4668, allocations: 136.5 kB / 0.7731 GB, free: 13.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.4669, allocations: 183.1 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.467, allocations: 33.64 kB / 0.7733 GB, free: 13.17 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.361e-05/0.467, allocations: 143.7 kB / 0.7735 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.399e-05/0.4671, allocations: 19.8 kB / 0.7735 GB, free: 13 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.946e-05/0.4671, allocations: 37.61 kB / 0.7735 GB, free: 12.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4673, allocations: 330.8 kB / 0.7738 GB, free: 12.62 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.452e-05/0.4674, allocations: 43.91 kB / 0.7739 GB, free: 12.58 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.4675, allocations: 105.4 kB / 0.774 GB, free: 12.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.4678, allocations: 234.4 kB / 0.7742 GB, free: 12.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.4678, allocations: 0 / 0.7742 GB, free: 12.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003478/0.4681, allocations: 237 kB / 0.7744 GB, free: 11.91 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.4682, allocations: 69.89 kB / 0.7745 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.4682, allocations: 4 kB / 0.7745 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.254e-05/0.4682, allocations: 7.938 kB / 0.7745 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001279/0.4684, allocations: 35.92 kB / 0.7745 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.4684, allocations: 4 kB / 0.7745 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.4685, allocations: 27.73 kB / 0.7746 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.474e-05/0.4686, allocations: 8 kB / 0.7746 GB, free: 11.75 MB / 0.545 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.0001437/0.4687, allocations: 181.9 kB / 0.7748 GB, free: 11.56 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.4687, allocations: 11.91 kB / 0.7748 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.4688, allocations: 17.34 kB / 0.7748 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.4688, allocations: 0 / 0.7748 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.4688, allocations: 0 / 0.7748 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.4689, allocations: 92.91 kB / 0.7749 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.4689, allocations: 0 / 0.7749 GB, free: 11.42 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.497e-05/0.469, allocations: 8 kB / 0.7749 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.641e-05/0.4691, allocations: 11.98 kB / 0.7749 GB, free: 11.4 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003548/0.4694, allocations: 278 kB / 0.7752 GB, free: 11.11 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004132/0.4698, allocations: 372.2 kB / 0.7755 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.341e-05/0.4699, allocations: 44.02 kB / 0.7756 GB, free: 10.68 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.59e-05/0.4701, allocations: 135.2 kB / 0.7757 GB, free: 10.54 MB / 0.545 GB Notification: Performance of Backend: time 1.523e-06/0.4701, allocations: 4 kB / 0.7757 GB, free: 10.54 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0006052/0.4707, allocations: 313.1 kB / 0.776 GB, free: 10.2 MB / 0.545 GB Notification: Performance of SimCode: time 0.0006899/0.4714, allocations: 0.7687 MB / 0.7767 GB, free: 9.375 MB / 0.545 GB Notification: Performance of Templates: time 0.004688/0.4761, allocations: 1.75 MB / 0.7784 GB, free: 7.645 MB / 0.545 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)