Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.0008472/0.0008472, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.0008851/0.0008851, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.439/2.439, allocations: 390.9 MB / 0.666 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 12 kB / 0.8153 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7734/0.7737, allocations: 142.4 MB / 0.9544 GB, free: 7.672 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.002919/0.7767, allocations: 1.962 MB / 0.9563 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001657/0.7784, allocations: 0.728 MB / 0.957 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002527/0.7787, allocations: 1.094 kB / 0.957 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.7789, allocations: 18.11 kB / 0.9571 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004073/0.7793, allocations: 45.2 kB / 0.9571 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.7796, allocations: 42.7 kB / 0.9572 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003578/0.78, allocations: 161.8 kB / 0.9573 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003545/0.7804, allocations: 206.8 kB / 0.9575 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002126/0.7806, allocations: 56.55 kB / 0.9576 GB, free: 5.164 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002232/0.7808, allocations: 59.5 kB / 0.9576 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.905e-05/0.7809, allocations: 5.469 kB / 0.9576 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000138/0.781, allocations: 27.7 kB / 0.9576 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.949e-05/0.7811, allocations: 34.62 kB / 0.9577 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.595e-05/0.7811, allocations: 48.83 kB / 0.9577 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002297/0.7814, allocations: 123 kB / 0.9578 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 9.648e-06/0.7814, allocations: 1.312 kB / 0.9578 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.836e-06/0.7814, allocations: 0 / 0.9578 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.961e-06/0.7814, allocations: 0 / 0.9578 GB, free: 4.969 MB / 0.7169 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.0009003/0.7823, allocations: 472.6 kB / 0.9583 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.7824, allocations: 9.438 kB / 0.9583 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003228/0.7827, allocations: 29.48 kB / 0.9583 GB, free: 4.473 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002849/0.783, allocations: 207.4 kB / 0.9585 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.899e-05/0.7831, allocations: 36.08 kB / 0.9586 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.847e-05/0.7831, allocations: 11.59 kB / 0.9586 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003488/0.7835, allocations: 147.5 kB / 0.9587 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.7835, allocations: 0 / 0.9587 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.7836, allocations: 5.281 kB / 0.9587 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.945e-05/0.7836, allocations: 17.45 kB / 0.9587 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000203/0.7838, allocations: 88.92 kB / 0.9588 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007667/0.7846, allocations: 0.6434 MB / 0.9594 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.7848, allocations: 55.25 kB / 0.9595 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.253e-05/0.7849, allocations: 31.97 kB / 0.9595 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.97e-05/0.7849, allocations: 7.953 kB / 0.9595 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001853/0.7851, allocations: 146.2 kB / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.7851, allocations: 0 / 0.9597 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7): time 0.0003635/0.7855, allocations: 165.3 kB / 0.9598 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.569e-05/0.7856, allocations: 135.3 kB / 0.96 GB, free: 2.945 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.7857, allocations: 184.2 kB / 0.9601 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.7857, allocations: 27.08 kB / 0.9602 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.919e-05/0.7858, allocations: 144 kB / 0.9603 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.845e-05/0.7858, allocations: 27.77 kB / 0.9603 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.195e-06/0.7859, allocations: 1.375 kB / 0.9603 GB, free: 2.605 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.297e-05/0.786, allocations: 325.6 kB / 0.9606 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.732e-05/0.7861, allocations: 37.98 kB / 0.9607 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.7862, allocations: 111.7 kB / 0.9608 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.7864, allocations: 116.1 kB / 0.9609 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.7864, allocations: 1.375 kB / 0.9609 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000403/0.7868, allocations: 257.4 kB / 0.9611 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.173e-05/0.7868, allocations: 58.09 kB / 0.9612 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.7869, allocations: 3 kB / 0.9612 GB, free: 1.812 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.324e-05/0.7869, allocations: 7.562 kB / 0.9612 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.787, allocations: 31.48 kB / 0.9612 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.7871, allocations: 4.375 kB / 0.9612 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.7872, allocations: 34.16 kB / 0.9613 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.183e-05/0.7873, allocations: 11.98 kB / 0.9613 GB, free: 1.777 MB / 0.7169 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 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001431/0.7874, allocations: 166.8 kB / 0.9614 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.7874, allocations: 16.05 kB / 0.9615 GB, free: 1.605 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.76e-05/0.7875, allocations: 16.14 kB / 0.9615 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.7875, allocations: 1.406 kB / 0.9615 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.732e-06/0.7875, allocations: 4 kB / 0.9615 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.7875, allocations: 3.938 kB / 0.9615 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001763/0.7877, allocations: 214.8 kB / 0.9617 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.7877, allocations: 0 / 0.9617 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.681e-05/0.7878, allocations: 8.969 kB / 0.9617 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.7878, allocations: 4.984 kB / 0.9617 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.7878, allocations: 1.969 kB / 0.9617 GB, free: 1.348 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.7878, allocations: 5.016 kB / 0.9617 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7879, allocations: 0 / 0.9617 GB, free: 1.344 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003862/0.7882, allocations: 225.1 kB / 0.9619 GB, free: 1.18 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.472e-05/0.7883, allocations: 95.48 kB / 0.962 GB, free: 1.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.7883, allocations: 7.578 kB / 0.962 GB, free: 1.066 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.186e-05/0.7884, allocations: 13.02 kB / 0.962 GB, free: 1.062 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.7885, allocations: 15.2 kB / 0.9621 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.7885, allocations: 3.031 kB / 0.9621 GB, free: 1.051 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.000104/0.7886, allocations: 127.1 kB / 0.9622 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7886, allocations: 0 / 0.9622 GB, free: 0.9531 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002647/0.7889, allocations: 26.84 kB / 0.9622 GB, free: 0.9531 MB / 0.7169 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000108/0.789, allocations: 110.2 kB / 0.9623 GB, free: 0.8555 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003234/0.7894, allocations: 219.8 kB / 0.9625 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.7894, allocations: 0 / 0.9625 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001186/0.7895, allocations: 108.8 kB / 0.9626 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002675/0.7898, allocations: 16.48 kB / 0.9626 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.7904, allocations: 337.5 kB / 0.963 GB, free: 328 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002884/0.7907, allocations: 0.7183 MB / 0.9637 GB, free: 15.6 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.442e-05/0.7908, allocations: 18.78 kB / 0.9637 GB, free: 15.59 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.384e-05/0.7909, allocations: 16.97 kB / 0.9637 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of SimCode: time 4.11e-07/0.7909, allocations: 4 kB / 0.9637 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of Templates: time 0.004598/0.7955, allocations: 1.199 MB / 0.9649 GB, free: 14.98 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches