Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001594/0.001594, allocations: 107.6 kB / 16.52 MB, free: 6.703 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.001902/0.001902, allocations: 199.1 kB / 17.44 MB, free: 6.066 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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7277/0.7277, allocations: 115.3 MB / 406.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002212/0.002212, allocations: 67.89 kB / 493.6 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4099/0.4121, allocations: 76.16 MB / 0.5564 GB, free: 36.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003437/0.4156, allocations: 2.35 MB / 0.5587 GB, free: 34.91 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001137/0.4168, allocations: 0.7757 MB / 0.5594 GB, free: 34.38 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.206e-05/0.4169, allocations: 2.406 kB / 0.5594 GB, free: 34.38 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005461/0.4174, allocations: 140.1 kB / 0.5596 GB, free: 34.3 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001708/0.4176, allocations: 63.05 kB / 0.5596 GB, free: 34.26 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001414/0.4178, allocations: 38.34 kB / 0.5596 GB, free: 34.24 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.418, allocations: 194.7 kB / 0.5598 GB, free: 34.17 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002142/0.4182, allocations: 86.2 kB / 0.5599 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.4183, allocations: 64.28 kB / 0.56 GB, free: 34.1 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.4185, allocations: 71.38 kB / 0.56 GB, free: 34.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.4185, allocations: 7.938 kB / 0.5601 GB, free: 34.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001332/0.4187, allocations: 56.86 kB / 0.5601 GB, free: 34.05 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.266e-05/0.4187, allocations: 36.34 kB / 0.5601 GB, free: 34.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 8.173e-05/0.4188, allocations: 65.69 kB / 0.5602 GB, free: 34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.419, allocations: 127 kB / 0.5603 GB, free: 33.96 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.419, allocations: 0.7812 kB / 0.5603 GB, free: 33.96 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.419, allocations: 0 / 0.5603 GB, free: 33.96 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.419, allocations: 1.312 kB / 0.5603 GB, free: 33.96 MB / 446.1 MB 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.0006464/0.4197, allocations: 498.5 kB / 0.5608 GB, free: 33.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.4197, allocations: 13.12 kB / 0.5608 GB, free: 33.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002147/0.42, allocations: 22.84 kB / 0.5608 GB, free: 33.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002003/0.4202, allocations: 220.4 kB / 0.561 GB, free: 33.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.85e-05/0.4202, allocations: 32.56 kB / 0.5611 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.979e-05/0.4203, allocations: 16.44 kB / 0.5611 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002982/0.4206, allocations: 148.5 kB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.4206, allocations: 1.438 kB / 0.5612 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.4206, allocations: 5.406 kB / 0.5612 GB, free: 33.11 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.4206, allocations: 7.75 kB / 0.5613 GB, free: 33.11 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002053/0.4208, allocations: 83.58 kB / 0.5613 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.4217, allocations: 0.6444 MB / 0.562 GB, free: 32.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002282/0.4219, allocations: 54.98 kB / 0.562 GB, free: 32.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.58e-05/0.422, allocations: 34.16 kB / 0.562 GB, free: 32.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.422, allocations: 2 kB / 0.562 GB, free: 32.48 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001963/0.4222, allocations: 143.2 kB / 0.5622 GB, free: 32.36 MB / 446.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.4222, allocations: 0 / 0.5622 GB, free: 32.36 MB / 446.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003661/0.4226, allocations: 165.6 kB / 0.5623 GB, free: 32.26 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.113e-05/0.4226, allocations: 137.5 kB / 0.5625 GB, free: 32.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.4228, allocations: 180.4 kB / 0.5626 GB, free: 31.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.4229, allocations: 27.77 kB / 0.5627 GB, free: 31.94 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.4229, allocations: 139.4 kB / 0.5628 GB, free: 31.81 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.423, allocations: 25.59 kB / 0.5628 GB, free: 31.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/0.423, allocations: 39.5 kB / 0.5629 GB, free: 31.77 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.849e-05/0.4231, allocations: 326.9 kB / 0.5632 GB, free: 31.45 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001017/0.4232, allocations: 40.61 kB / 0.5632 GB, free: 31.43 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.4233, allocations: 115 kB / 0.5633 GB, free: 31.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002146/0.4236, allocations: 221.9 kB / 0.5635 GB, free: 31.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.4236, allocations: 2.625 kB / 0.5635 GB, free: 31.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003372/0.4239, allocations: 241.6 kB / 0.5638 GB, free: 30.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.424, allocations: 60.41 kB / 0.5638 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-06/0.424, allocations: 6.5 kB / 0.5638 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.424, allocations: 4.594 kB / 0.5638 GB, free: 30.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4241, allocations: 35.28 kB / 0.5639 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.4241, allocations: 4.594 kB / 0.5639 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001352/0.4243, allocations: 23.78 kB / 0.5639 GB, free: 30.88 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.4243, allocations: 8.109 kB / 0.5639 GB, free: 30.88 MB / 446.1 MB 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.0001084/0.4244, allocations: 166.4 kB / 0.5641 GB, free: 30.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.4245, allocations: 16.56 kB / 0.5641 GB, free: 30.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.249e-05/0.4245, allocations: 18.16 kB / 0.5641 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.4245, allocations: 6.672 kB / 0.5641 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.4245, allocations: 1.438 kB / 0.5641 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4245, allocations: 2.344 kB / 0.5641 GB, free: 30.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.4247, allocations: 212.6 kB / 0.5643 GB, free: 30.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4247, allocations: 0 / 0.5643 GB, free: 30.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.297e-05/0.4248, allocations: 11.56 kB / 0.5643 GB, free: 30.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.4248, allocations: 1.219 kB / 0.5643 GB, free: 30.48 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.862e-05/0.4248, allocations: 16.06 kB / 0.5643 GB, free: 30.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.4248, allocations: 1.062 kB / 0.5643 GB, free: 30.47 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.4248, allocations: 0 / 0.5643 GB, free: 30.47 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.4252, allocations: 221.7 kB / 0.5646 GB, free: 30.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.871e-05/0.4253, allocations: 85.75 kB / 0.5646 GB, free: 30.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.4253, allocations: 6.188 kB / 0.5646 GB, free: 30.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.934e-05/0.4254, allocations: 13.34 kB / 0.5647 GB, free: 30.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.296e-05/0.4255, allocations: 10.41 kB / 0.5647 GB, free: 30.22 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.102e-05/0.4255, allocations: 3.703 kB / 0.5647 GB, free: 30.22 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001017/0.4256, allocations: 139.8 kB / 0.5648 GB, free: 30.12 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4256, allocations: 0 / 0.5648 GB, free: 30.12 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002521/0.4259, allocations: 35.03 kB / 0.5648 GB, free: 30.11 MB / 446.1 MB 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.518e-05/0.426, allocations: 104 kB / 0.5649 GB, free: 30.03 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.4263, allocations: 219.8 kB / 0.5651 GB, free: 29.86 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.4263, allocations: 0 / 0.5651 GB, free: 29.86 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001154/0.4264, allocations: 105.9 kB / 0.5652 GB, free: 29.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.4267, allocations: 15.34 kB / 0.5653 GB, free: 29.78 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000581/0.4273, allocations: 361.8 kB / 0.5656 GB, free: 29.52 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001646/0.4275, allocations: 0.7124 MB / 0.5663 GB, free: 28.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.4275, allocations: 14.27 kB / 0.5663 GB, free: 28.82 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4275, allocations: 0 / 0.5663 GB, free: 28.82 MB / 446.1 MB Notification: Performance of Templates: time 0.003941/0.4314, allocations: 1.7 MB / 0.568 GB, free: 28.71 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)