Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.0008417/0.0008414, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006293/0.006293, allocations: 170.1 kB / 16.27 MB, free: 6.652 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.42/1.42, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.883/2.883, allocations: 473.4 MB / 0.7469 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0005209/0.0005212, allocations: 10.09 kB / 0.9158 GB, free: 33.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3545, allocations: 162.2 MB / 1.074 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002821/0.3573, allocations: 2.014 MB / 1.076 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001214/0.3586, allocations: 0.7638 MB / 1.077 GB, free: 4.758 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.654e-05/0.3587, allocations: 7.938 kB / 1.077 GB, free: 4.75 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.3588, allocations: 15.86 kB / 1.077 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002477/0.359, allocations: 59.72 kB / 1.077 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001589/0.3592, allocations: 47.89 kB / 1.077 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002217/0.3594, allocations: 195.4 kB / 1.077 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.3597, allocations: 201.3 kB / 1.077 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001128/0.3598, allocations: 55.77 kB / 1.077 GB, free: 4.156 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001508/0.36, allocations: 63.69 kB / 1.077 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.36, allocations: 8 kB / 1.077 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.3602, allocations: 63.88 kB / 1.078 GB, free: 4.023 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.286e-05/0.3602, allocations: 27.91 kB / 1.078 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.504e-05/0.3603, allocations: 89.36 kB / 1.078 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.3605, allocations: 163.6 kB / 1.078 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.3605, allocations: 0 / 1.078 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3606, allocations: 4 kB / 1.078 GB, free: 3.738 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.3606, allocations: 0 / 1.078 GB, free: 3.738 MB / 0.8262 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.0006662/0.3612, allocations: 474.6 kB / 1.078 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.3613, allocations: 8.031 kB / 1.078 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.3615, allocations: 24.75 kB / 1.078 GB, free: 3.184 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002321/0.3617, allocations: 216.1 kB / 1.078 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.528e-05/0.3618, allocations: 38.39 kB / 1.079 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.023e-05/0.3618, allocations: 20.06 kB / 1.079 GB, free: 2.871 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002907/0.3621, allocations: 148.4 kB / 1.079 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-06/0.3622, allocations: 0 / 1.079 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.3622, allocations: 4 kB / 1.079 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.054e-05/0.3622, allocations: 4 kB / 1.079 GB, free: 2.707 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002039/0.3624, allocations: 99.88 kB / 1.079 GB, free: 2.609 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008392/0.3633, allocations: 0.6441 MB / 1.079 GB, free: 1.902 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.3635, allocations: 58.62 kB / 1.079 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.655e-05/0.3636, allocations: 28.84 kB / 1.079 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.222e-05/0.3636, allocations: 0 / 1.079 GB, free: 1.805 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.3638, allocations: 154.6 kB / 1.08 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.623e-06/0.3638, allocations: 0 / 1.08 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003724/0.3642, allocations: 163.4 kB / 1.08 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.725e-05/0.3643, allocations: 136.5 kB / 1.08 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.3644, allocations: 182.8 kB / 1.08 GB, free: 1.105 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.3645, allocations: 33.64 kB / 1.08 GB, free: 1.066 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.385e-05/0.3646, allocations: 147.8 kB / 1.08 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.235e-05/0.3646, allocations: 15.81 kB / 1.08 GB, free: 0.8984 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.3646, allocations: 21.7 kB / 1.08 GB, free: 0.8711 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3648, allocations: 330.8 kB / 1.081 GB, free: 0.5391 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.3648, allocations: 31.98 kB / 1.081 GB, free: 0.5078 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001324/0.365, allocations: 120.7 kB / 1.081 GB, free: 368 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.3652, allocations: 226.4 kB / 1.081 GB, free: 88 kB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3653, allocations: 4 kB / 1.081 GB, free: 84 kB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000372/0.3656, allocations: 248.6 kB / 1.081 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.3657, allocations: 59.41 kB / 1.081 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.3657, allocations: 4.25 kB / 1.081 GB, free: 15.75 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.3657, allocations: 15.88 kB / 1.081 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001137/0.3658, allocations: 27.98 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.3659, allocations: 7.984 kB / 1.081 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.366, allocations: 27.84 kB / 1.081 GB, free: 15.67 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.366, allocations: 7.938 kB / 1.081 GB, free: 15.66 MB / 0.8419 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.0001267/0.3662, allocations: 167.5 kB / 1.082 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.184e-05/0.3662, allocations: 19.81 kB / 1.082 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.773e-05/0.3662, allocations: 21.33 kB / 1.082 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.3662, allocations: 0 / 1.082 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3663, allocations: 0 / 1.082 GB, free: 15.44 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.3663, allocations: 4.031 kB / 1.082 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.3664, allocations: 213.6 kB / 1.082 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.3664, allocations: 8 kB / 1.082 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.041e-05/0.3665, allocations: 15.92 kB / 1.082 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3665, allocations: 0 / 1.082 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.3666, allocations: 3.938 kB / 1.082 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3666, allocations: 8 kB / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3666, allocations: 0 / 1.082 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003746/0.367, allocations: 218.9 kB / 1.082 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.367, allocations: 89.05 kB / 1.082 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.143e-05/0.3671, allocations: 7.938 kB / 1.082 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.495e-05/0.3672, allocations: 19.98 kB / 1.082 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.3672, allocations: 11.98 kB / 1.082 GB, free: 14.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.3672, allocations: 4 kB / 1.082 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001006/0.3673, allocations: 127.2 kB / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3674, allocations: 0 / 1.082 GB, free: 14.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002441/0.3676, allocations: 28 kB / 1.082 GB, free: 14.6 MB / 0.8419 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.0001065/0.3677, allocations: 107.2 kB / 1.082 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0003107/0.368, allocations: 218.7 kB / 1.083 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.368, allocations: 0 / 1.083 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001257/0.3682, allocations: 107.3 kB / 1.083 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002302/0.3684, allocations: 16.61 kB / 1.083 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005372/0.369, allocations: 358.1 kB / 1.083 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.3692, allocations: 0.7121 MB / 1.084 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 8.304e-05/0.3693, allocations: 24.62 kB / 1.084 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.778e-05/0.3694, allocations: 11.44 kB / 1.084 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.3694, allocations: 0 / 1.084 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of Templates: time 0.003856/0.3732, allocations: 1.235 MB / 1.085 GB, free: 11.75 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)