Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008237/0.0008237, allocations: 86.09 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.001005/0.001005, 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.436/1.436, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.788/2.788, allocations: 437.7 MB / 0.7117 GB, free: 7.156 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005052, allocations: 11.94 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7372/0.7377, allocations: 153.8 MB / 1.022 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003514/0.7413, allocations: 1.959 MB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001747/0.743, allocations: 0.7252 MB / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002155/0.7433, allocations: 0 / 1.025 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001989/0.7435, allocations: 19.86 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004152/0.744, allocations: 43.69 kB / 1.025 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000283/0.7443, allocations: 39.95 kB / 1.025 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003677/0.7446, allocations: 167.4 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000396/0.745, allocations: 185.7 kB / 1.025 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.7453, allocations: 55.77 kB / 1.026 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002189/0.7455, allocations: 71.67 kB / 1.026 GB, free: 12.79 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.813e-05/0.7455, allocations: 4 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001159/0.7457, allocations: 23.98 kB / 1.026 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 6.21e-05/0.7457, allocations: 35.91 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.818e-05/0.7458, allocations: 49.64 kB / 1.026 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002541/0.7461, allocations: 125.6 kB / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.745e-06/0.7461, allocations: 0 / 1.026 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.487e-06/0.7461, allocations: 7.922 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.137e-06/0.7461, allocations: 0 / 1.026 GB, free: 12.54 MB / 0.7794 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.0009206/0.747, allocations: 470.5 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.7471, allocations: 8.562 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002896/0.7474, allocations: 31.8 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002844/0.7477, allocations: 206.8 kB / 1.026 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.367e-05/0.7478, allocations: 29.89 kB / 1.027 GB, free: 11.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.539e-05/0.7478, allocations: 12 kB / 1.027 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.7481, allocations: 154.7 kB / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.7482, allocations: 0 / 1.027 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.7482, allocations: 8 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.635e-05/0.7482, allocations: 8.188 kB / 1.027 GB, free: 11.51 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002103/0.7484, allocations: 88.45 kB / 1.027 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.7495, allocations: 0.645 MB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.7497, allocations: 62.55 kB / 1.027 GB, free: 10.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.18e-05/0.7498, allocations: 28.91 kB / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.7499, allocations: 0 / 1.027 GB, free: 10.61 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.7501, allocations: 146.7 kB / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.502e-06/0.7501, allocations: 0 / 1.028 GB, free: 10.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.000431/0.7506, allocations: 171.2 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.109e-05/0.7507, allocations: 136.5 kB / 1.028 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.7508, allocations: 182.3 kB / 1.028 GB, free: 9.914 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.743e-05/0.7509, allocations: 25.7 kB / 1.028 GB, free: 9.883 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.338e-05/0.751, allocations: 139.7 kB / 1.028 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.751, allocations: 23.73 kB / 1.028 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.136e-06/0.751, allocations: 0 / 1.028 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001232/0.7511, allocations: 334.8 kB / 1.029 GB, free: 9.379 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.53e-05/0.7512, allocations: 47.97 kB / 1.029 GB, free: 9.332 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001342/0.7514, allocations: 110.8 kB / 1.029 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.7515, allocations: 107.3 kB / 1.029 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.7515, allocations: 0 / 1.029 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003625/0.7519, allocations: 252.6 kB / 1.029 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.752, allocations: 59.39 kB / 1.029 GB, free: 8.738 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.752, allocations: 4 kB / 1.029 GB, free: 8.734 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.752, allocations: 7.938 kB / 1.029 GB, free: 8.727 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.7521, allocations: 31.98 kB / 1.029 GB, free: 8.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.7521, allocations: 4.312 kB / 1.029 GB, free: 8.691 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.7523, allocations: 27.83 kB / 1.029 GB, free: 8.664 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.781e-05/0.7523, allocations: 19.89 kB / 1.029 GB, free: 8.645 MB / 0.7794 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.0001387/0.7525, allocations: 164.5 kB / 1.029 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.297e-05/0.7525, allocations: 11.91 kB / 1.029 GB, free: 8.457 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.7525, allocations: 13.41 kB / 1.029 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7525, allocations: 0 / 1.029 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.7525, allocations: 4 kB / 1.029 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.7525, allocations: 0 / 1.029 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.7527, allocations: 217.5 kB / 1.03 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.7528, allocations: 0 / 1.03 GB, free: 8.184 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.24e-05/0.7528, allocations: 19.92 kB / 1.03 GB, free: 8.164 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.7529, allocations: 4 kB / 1.03 GB, free: 8.16 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.7529, allocations: 4 kB / 1.03 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.7529, allocations: 0 / 1.03 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.7529, allocations: 4.047 kB / 1.03 GB, free: 8.152 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003762/0.7533, allocations: 222.6 kB / 1.03 GB, free: 7.91 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.78e-05/0.7533, allocations: 92.89 kB / 1.03 GB, free: 7.801 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.7534, allocations: 4 kB / 1.03 GB, free: 7.797 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.878e-05/0.7535, allocations: 11.98 kB / 1.03 GB, free: 7.785 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.7535, allocations: 16.05 kB / 1.03 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.7536, allocations: 0 / 1.03 GB, free: 7.77 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001094/0.7537, allocations: 132.3 kB / 1.03 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of sort global known variables: time 3.1e-07/0.7537, allocations: 0 / 1.03 GB, free: 7.641 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002571/0.7539, allocations: 32 kB / 1.03 GB, free: 7.609 MB / 0.7794 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.0001195/0.7541, allocations: 104 kB / 1.03 GB, free: 7.496 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003387/0.7544, allocations: 215.5 kB / 1.03 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.7544, allocations: 0 / 1.03 GB, free: 7.262 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.7546, allocations: 123.2 kB / 1.031 GB, free: 7.129 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002327/0.7548, allocations: 15.95 kB / 1.031 GB, free: 7.113 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006036/0.7554, allocations: 338.3 kB / 1.031 GB, free: 6.762 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002979/0.7557, allocations: 0.716 MB / 1.032 GB, free: 6.02 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.616e-05/0.7558, allocations: 20.62 kB / 1.032 GB, free: 6 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.817e-05/0.7559, allocations: 11.44 kB / 1.032 GB, free: 5.988 MB / 0.7794 GB Notification: Performance of SimCode: time 5.71e-07/0.7559, allocations: 4 kB / 1.032 GB, free: 5.984 MB / 0.7794 GB Notification: Performance of Templates: time 0.003843/0.7597, allocations: 1.205 MB / 1.033 GB, free: 4.797 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.makefile (rm -f Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.sim & ./Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_Utilities_Examples_TestVoltageCTRL.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches