Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL") translateModel(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|voltageControl.V_nominal|sou.V_in|Vtr_high.y|voltageControl.y",fileNamePrefix="Buildings_latest_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.001203/0.001203, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001363/0.001363, allocations: 195 kB / 16.14 MB, free: 6.645 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.386/1.386, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.754/2.754, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001221/0.001221, allocations: 63.38 kB / 0.9114 GB, free: 33.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3492/0.3504, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003849/0.3543, allocations: 2.357 MB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001247/0.3556, allocations: 0.791 MB / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.623e-05/0.3557, allocations: 0 / 1.071 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005859/0.3563, allocations: 139.5 kB / 1.071 GB, free: 7.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001607/0.3565, allocations: 51.73 kB / 1.071 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.3566, allocations: 47.89 kB / 1.071 GB, free: 7.535 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.000224/0.3569, allocations: 191.4 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.3571, allocations: 80.81 kB / 1.071 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.3572, allocations: 55.73 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.3573, allocations: 75.67 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.277e-05/0.3574, allocations: 8 kB / 1.071 GB, free: 7.133 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.3575, allocations: 71.8 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.3576, allocations: 31.84 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.046e-05/0.3576, allocations: 59.73 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002185/0.3579, allocations: 167.7 kB / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3579, allocations: 0 / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.61e-07/0.3579, allocations: 0 / 1.072 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.3579, allocations: 0 / 1.072 GB, free: 6.809 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.000711/0.3586, allocations: 0.4907 MB / 1.072 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3587, allocations: 8.031 kB / 1.072 GB, free: 6.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002032/0.3589, allocations: 20.83 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002346/0.3591, allocations: 230 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.063e-05/0.3592, allocations: 34.45 kB / 1.072 GB, free: 5.93 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.3592, allocations: 12.12 kB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002993/0.3595, allocations: 147.3 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.948e-06/0.3595, allocations: 4 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.116e-05/0.3596, allocations: 8 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.3596, allocations: 4 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001999/0.3598, allocations: 83.94 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000801/0.3606, allocations: 0.6479 MB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.3608, allocations: 54.62 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.339e-05/0.3609, allocations: 28.84 kB / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/0.3609, allocations: 0 / 1.073 GB, free: 4.859 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000197/0.3611, allocations: 146.7 kB / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3612, allocations: 0 / 1.073 GB, free: 4.691 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7): time 0.0003504/0.3615, allocations: 171.2 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.3616, allocations: 128.5 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.3617, allocations: 182.9 kB / 1.074 GB, free: 4.168 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3618, allocations: 29.7 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.3619, allocations: 143.7 kB / 1.074 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.3619, allocations: 19.81 kB / 1.074 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.903e-05/0.362, allocations: 45.61 kB / 1.074 GB, free: 3.914 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.467e-05/0.3621, allocations: 322.8 kB / 1.074 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.094e-05/0.3622, allocations: 39.97 kB / 1.074 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3623, allocations: 109.4 kB / 1.075 GB, free: 3.41 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002344/0.3625, allocations: 230.3 kB / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3625, allocations: 0 / 1.075 GB, free: 3.133 MB / 0.8262 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003257/0.3629, allocations: 240.7 kB / 1.075 GB, free: 2.879 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/0.3629, allocations: 68.8 kB / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.3629, allocations: 3.938 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.363, allocations: 4 kB / 1.075 GB, free: 2.793 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001133/0.3631, allocations: 31.92 kB / 1.075 GB, free: 2.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.405e-06/0.3631, allocations: 4 kB / 1.075 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000131/0.3632, allocations: 32.14 kB / 1.075 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.3632, allocations: 11.94 kB / 1.075 GB, free: 2.715 MB / 0.8262 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.0001184/0.3634, allocations: 164.2 kB / 1.075 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.3634, allocations: 15.81 kB / 1.075 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.167e-05/0.3634, allocations: 17.34 kB / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.3634, allocations: 0 / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3635, allocations: 0 / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3635, allocations: 0 / 1.075 GB, free: 2.504 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001552/0.3636, allocations: 213.6 kB / 1.076 GB, free: 2.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3636, allocations: 8 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.017e-05/0.3637, allocations: 15.98 kB / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.3637, allocations: 0 / 1.076 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.3637, allocations: 3.938 kB / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3637, allocations: 320 / 1.076 GB, free: 2.219 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.3638, allocations: 4 kB / 1.076 GB, free: 2.215 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000351/0.3641, allocations: 222.5 kB / 1.076 GB, free: 1.973 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.437e-05/0.3642, allocations: 89.11 kB / 1.076 GB, free: 1.867 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.824e-05/0.3642, allocations: 3.938 kB / 1.076 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.11e-05/0.3643, allocations: 11.98 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.821e-05/0.3644, allocations: 11.98 kB / 1.076 GB, free: 1.84 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.3644, allocations: 4 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 9.045e-05/0.3645, allocations: 131.2 kB / 1.076 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3645, allocations: 0 / 1.076 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002334/0.3647, allocations: 31.91 kB / 1.076 GB, free: 1.676 MB / 0.8262 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.0001009/0.3648, allocations: 103.2 kB / 1.076 GB, free: 1.566 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002933/0.3651, allocations: 214.6 kB / 1.076 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.3651, allocations: 0 / 1.076 GB, free: 1.332 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.3653, allocations: 111.3 kB / 1.076 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000221/0.3655, allocations: 12.62 kB / 1.076 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005573/0.366, allocations: 343.3 kB / 1.077 GB, free: 0.8438 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.3663, allocations: 0.716 MB / 1.078 GB, free: 104 kB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.628e-05/0.3664, allocations: 20.81 kB / 1.078 GB, free: 84 kB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.3664, allocations: 11.44 kB / 1.078 GB, free: 72 kB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3664, allocations: 0 / 1.078 GB, free: 72 kB / 0.8262 GB Notification: Performance of Templates: time 0.003764/0.3702, allocations: 1.247 MB / 1.079 GB, free: 14.84 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches