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.005912/0.005912, allocations: 100.8 kB / 15.73 MB, free: 6.035 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.001186/0.001186, allocations: 197.3 kB / 16.68 MB, free: 5.953 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.308/1.308, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002037/0.002036, allocations: 285 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9195/0.9195, allocations: 169.3 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 95.84 kB / 0.6814 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4735/0.4762, allocations: 86.98 MB / 0.7663 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003488/0.4797, allocations: 2.296 MB / 0.7686 GB, free: 1.629 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001263/0.481, allocations: 0.7831 MB / 0.7694 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.4811, allocations: 7.938 kB / 0.7694 GB, free: 0.832 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0006211/0.4818, allocations: 143.4 kB / 0.7695 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.482, allocations: 63.66 kB / 0.7696 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.4822, allocations: 55.81 kB / 0.7696 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002402/0.4824, allocations: 167.4 kB / 0.7698 GB, free: 420 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003231/0.4827, allocations: 97.05 kB / 0.7699 GB, free: 324 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.4829, allocations: 59.77 kB / 0.7699 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001888/0.4831, allocations: 75.67 kB / 0.77 GB, free: 188 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.656e-05/0.4831, allocations: 12 kB / 0.77 GB, free: 176 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001447/0.4833, allocations: 51.91 kB / 0.7701 GB, free: 124 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.4834, allocations: 35.91 kB / 0.7701 GB, free: 88 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.4835, allocations: 75.58 kB / 0.7702 GB, free: 12 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.4838, allocations: 162 kB / 0.7703 GB, free: 15.86 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.4838, allocations: 8 kB / 0.7703 GB, free: 15.85 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.833e-06/0.4838, allocations: 0 / 0.7703 GB, free: 15.85 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.724e-06/0.4838, allocations: 0 / 0.7703 GB, free: 15.85 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.0008813/0.4847, allocations: 486.6 kB / 0.7708 GB, free: 15.31 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4848, allocations: 8.031 kB / 0.7708 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002472/0.485, allocations: 36.72 kB / 0.7708 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002504/0.4853, allocations: 210.9 kB / 0.771 GB, free: 15.03 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.708e-05/0.4853, allocations: 42.45 kB / 0.7711 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.4854, allocations: 16.12 kB / 0.7711 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/0.4857, allocations: 145 kB / 0.7712 GB, free: 14.81 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.4857, allocations: 3.938 kB / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.4857, allocations: 0 / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.179e-05/0.4857, allocations: 8 kB / 0.7712 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001982/0.4859, allocations: 88.64 kB / 0.7713 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008378/0.4868, allocations: 0.6402 MB / 0.7719 GB, free: 14.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.487, allocations: 62.48 kB / 0.772 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.892e-05/0.4871, allocations: 32.91 kB / 0.772 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.273e-05/0.4871, allocations: 0 / 0.772 GB, free: 13.9 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.4874, allocations: 142.8 kB / 0.7722 GB, free: 13.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.4874, allocations: 0 / 0.7722 GB, free: 13.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0003642/0.4877, allocations: 163.2 kB / 0.7723 GB, free: 13.57 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.608e-05/0.4878, allocations: 136.5 kB / 0.7725 GB, free: 13.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.488, allocations: 191.1 kB / 0.7726 GB, free: 13.2 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.9e-05/0.488, allocations: 29.7 kB / 0.7727 GB, free: 13.17 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.353e-05/0.4881, allocations: 139.7 kB / 0.7728 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.4882, allocations: 23.73 kB / 0.7728 GB, free: 13 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.4882, allocations: 37.62 kB / 0.7729 GB, free: 12.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.4883, allocations: 326.8 kB / 0.7732 GB, free: 12.63 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.71e-05/0.4884, allocations: 35.98 kB / 0.7732 GB, free: 12.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.4886, allocations: 109.4 kB / 0.7733 GB, free: 12.45 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.4888, allocations: 230.3 kB / 0.7735 GB, free: 12.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4888, allocations: 8 kB / 0.7735 GB, free: 12.17 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003419/0.4892, allocations: 240.7 kB / 0.7738 GB, free: 11.91 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 4.606e-05/0.4892, allocations: 59.41 kB / 0.7738 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4893, allocations: 7.938 kB / 0.7738 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.4893, allocations: 4.312 kB / 0.7738 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.4894, allocations: 27.98 kB / 0.7739 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4894, allocations: 11.88 kB / 0.7739 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001321/0.4896, allocations: 31.73 kB / 0.7739 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.4896, allocations: 8 kB / 0.7739 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.0001442/0.4897, allocations: 170.9 kB / 0.7741 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.181e-05/0.4898, allocations: 11.84 kB / 0.7741 GB, free: 11.56 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.4898, allocations: 21.33 kB / 0.7741 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.4898, allocations: 8 kB / 0.7741 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4898, allocations: 0 / 0.7741 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.4898, allocations: 0 / 0.7741 GB, free: 11.53 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.49, allocations: 209.6 kB / 0.7743 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.49, allocations: 0 / 0.7743 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-05/0.4901, allocations: 8 kB / 0.7743 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.4901, allocations: 0 / 0.7743 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.4901, allocations: 7.938 kB / 0.7743 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4901, allocations: 0 / 0.7743 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4902, allocations: 0 / 0.7743 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003711/0.4905, allocations: 218.9 kB / 0.7745 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.4906, allocations: 89.12 kB / 0.7746 GB, free: 10.92 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.4906, allocations: 15.92 kB / 0.7746 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.499e-05/0.4907, allocations: 15.98 kB / 0.7747 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.555e-05/0.4908, allocations: 3.938 kB / 0.7747 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.468e-06/0.4908, allocations: 11.94 kB / 0.7747 GB, free: 10.87 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001097/0.4909, allocations: 135.3 kB / 0.7748 GB, free: 10.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4909, allocations: 4 kB / 0.7748 GB, free: 10.73 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002416/0.4912, allocations: 31.91 kB / 0.7748 GB, free: 10.7 MB / 0.545 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.0001056/0.4913, allocations: 103.2 kB / 0.7749 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003134/0.4916, allocations: 218.6 kB / 0.7751 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4916, allocations: 0.625 kB / 0.7751 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.4918, allocations: 107.4 kB / 0.7752 GB, free: 10.24 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.492, allocations: 22.48 kB / 0.7753 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000563/0.4926, allocations: 286.3 kB / 0.7755 GB, free: 9.914 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.4929, allocations: 0.7197 MB / 0.7762 GB, free: 9.168 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.511e-05/0.493, allocations: 12.64 kB / 0.7763 GB, free: 9.156 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.094e-05/0.493, allocations: 11.44 kB / 0.7763 GB, free: 9.145 MB / 0.545 GB Notification: Performance of SimCode: time 2.21e-07/0.493, allocations: 4 kB / 0.7763 GB, free: 9.141 MB / 0.545 GB Notification: Performance of Templates: time 0.004087/0.4971, allocations: 1.425 MB / 0.7777 GB, free: 7.738 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)