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.001824/0.001824, allocations: 106.7 kB / 16.41 MB, free: 6.453 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.001552/0.001553, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002095/0.002095, allocations: 285.8 kB / 291.5 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.9459/0.9459, allocations: 169.2 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001865, allocations: 95.84 kB / 0.6821 GB, free: 6.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4216, allocations: 86.97 MB / 0.767 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003957/0.4256, allocations: 2.308 MB / 0.7693 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.00126/0.4269, allocations: 0.7753 MB / 0.77 GB, free: 0.8438 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.427, allocations: 7.938 kB / 0.77 GB, free: 0.8359 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0005611/0.4276, allocations: 151.4 kB / 0.7702 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001865/0.4278, allocations: 63.61 kB / 0.7702 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001647/0.428, allocations: 47.88 kB / 0.7703 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.4282, allocations: 167.4 kB / 0.7704 GB, free: 424 kB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.4285, allocations: 97.05 kB / 0.7705 GB, free: 328 kB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001249/0.4287, allocations: 63.75 kB / 0.7706 GB, free: 264 kB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.4288, allocations: 75.67 kB / 0.7707 GB, free: 188 kB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.288e-05/0.4288, allocations: 12 kB / 0.7707 GB, free: 176 kB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.429, allocations: 55.89 kB / 0.7707 GB, free: 120 kB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 6.274e-05/0.429, allocations: 43.89 kB / 0.7708 GB, free: 76 kB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.465e-05/0.4291, allocations: 67.61 kB / 0.7708 GB, free: 8 kB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002534/0.4294, allocations: 166 kB / 0.771 GB, free: 15.85 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.4294, allocations: 4 kB / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4294, allocations: 0 / 0.771 GB, free: 15.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.4294, 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.0006909/0.4301, allocations: 486.6 kB / 0.7715 GB, free: 15.31 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.4301, allocations: 8.031 kB / 0.7715 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/0.4304, allocations: 36.73 kB / 0.7715 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002404/0.4306, allocations: 208.1 kB / 0.7717 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.049e-05/0.4307, allocations: 38.45 kB / 0.7717 GB, free: 14.98 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.541e-05/0.4307, allocations: 20.06 kB / 0.7718 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002805/0.431, allocations: 147 kB / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.431, allocations: 0 / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.431, allocations: 7.938 kB / 0.7719 GB, free: 14.8 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.4311, allocations: 8 kB / 0.7719 GB, free: 14.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.4313, allocations: 83.95 kB / 0.772 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008231/0.4321, allocations: 0.6324 MB / 0.7726 GB, free: 14.01 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002198/0.4323, allocations: 66.48 kB / 0.7727 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.618e-05/0.4324, allocations: 28.91 kB / 0.7727 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.4325, allocations: 0 / 0.7727 GB, free: 13.91 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002132/0.4327, allocations: 146.8 kB / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.4327, allocations: 0 / 0.7728 GB, free: 13.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0003568/0.433, allocations: 167.2 kB / 0.773 GB, free: 13.56 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.4331, allocations: 136.5 kB / 0.7731 GB, free: 13.4 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001631/0.4333, allocations: 183.1 kB / 0.7733 GB, free: 13.21 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.4333, allocations: 33.7 kB / 0.7733 GB, free: 13.17 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.519e-05/0.4334, allocations: 139.7 kB / 0.7735 GB, free: 13.02 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.4334, allocations: 19.8 kB / 0.7735 GB, free: 13 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.4335, allocations: 41.61 kB / 0.7735 GB, free: 12.96 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.4336, allocations: 326.8 kB / 0.7738 GB, free: 12.63 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.838e-05/0.4337, allocations: 35.98 kB / 0.7739 GB, free: 12.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001231/0.4339, allocations: 105.4 kB / 0.774 GB, free: 12.46 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002473/0.4341, allocations: 242.3 kB / 0.7742 GB, free: 12.17 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.4341, allocations: 4 kB / 0.7742 GB, free: 12.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003447/0.4345, allocations: 232.7 kB / 0.7744 GB, free: 11.92 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 5.275e-05/0.4346, allocations: 67.72 kB / 0.7745 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.4346, allocations: 7.938 kB / 0.7745 GB, free: 11.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.4346, allocations: 7.938 kB / 0.7745 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001225/0.4347, allocations: 27.92 kB / 0.7745 GB, free: 11.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.4347, allocations: 4 kB / 0.7745 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001396/0.4349, allocations: 31.73 kB / 0.7746 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.4349, 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.0001424/0.435, allocations: 174.3 kB / 0.7747 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.305e-05/0.4351, allocations: 11.91 kB / 0.7748 GB, free: 11.56 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.105e-05/0.4351, allocations: 17.33 kB / 0.7748 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.185e-06/0.4351, allocations: 4 kB / 0.7748 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.4351, allocations: 0 / 0.7748 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4351, allocations: 0 / 0.7748 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001838/0.4353, allocations: 213.6 kB / 0.775 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.4353, allocations: 0 / 0.775 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.049e-05/0.4354, allocations: 8 kB / 0.775 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.4354, allocations: 0 / 0.775 GB, free: 11.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.665e-05/0.4355, allocations: 11.97 kB / 0.775 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.4355, allocations: 8 kB / 0.775 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4355, allocations: 3.984 kB / 0.775 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003748/0.4359, allocations: 210.6 kB / 0.7752 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.782e-05/0.4359, allocations: 85.05 kB / 0.7753 GB, free: 10.91 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.436, allocations: 11.88 kB / 0.7753 GB, free: 10.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.951e-05/0.4361, allocations: 15.98 kB / 0.7753 GB, free: 10.89 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.275e-05/0.4361, allocations: 8 kB / 0.7753 GB, free: 10.88 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.4361, allocations: 7.984 kB / 0.7753 GB, free: 10.87 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.632e-05/0.4362, allocations: 131.2 kB / 0.7755 GB, free: 10.74 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4363, allocations: 0 / 0.7755 GB, free: 10.74 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002658/0.4365, allocations: 35.91 kB / 0.7755 GB, free: 10.71 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 9.486e-05/0.4366, allocations: 102.6 kB / 0.7756 GB, free: 10.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003103/0.4369, allocations: 223.1 kB / 0.7758 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.437, allocations: 0 / 0.7758 GB, free: 10.36 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.4371, allocations: 103.4 kB / 0.7759 GB, free: 10.25 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.4373, allocations: 24.39 kB / 0.7759 GB, free: 10.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005895/0.4379, allocations: 316 kB / 0.7762 GB, free: 9.887 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.4382, allocations: 0.7198 MB / 0.7769 GB, free: 9.141 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.4383, allocations: 11.44 kB / 0.7769 GB, free: 9.129 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4383, allocations: 7.938 kB / 0.777 GB, free: 9.121 MB / 0.545 GB Notification: Performance of Templates: time 0.003582/0.4419, allocations: 1.703 MB / 0.7786 GB, free: 7.426 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)