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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001709/0.001709, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002326/0.002326, allocations: 192.6 kB / 16.53 MB, free: 6.391 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.647/1.647, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.959/2.959, allocations: 437 MB / 0.7104 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001873/0.001873, allocations: 63.89 kB / 0.8692 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.768/0.7699, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.0048/0.7747, allocations: 2.317 MB / 1.02 GB, free: 184 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001354/0.7761, allocations: 0.7793 MB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.635e-05/0.7762, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006064/0.7768, allocations: 147.4 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.777, allocations: 71.61 kB / 1.021 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001587/0.7772, allocations: 55.86 kB / 1.021 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.7774, allocations: 159.5 kB / 1.021 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002569/0.7776, allocations: 96.8 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.7778, allocations: 67.7 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.7779, allocations: 71.69 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.778, allocations: 15.98 kB / 1.021 GB, free: 14.72 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.7781, allocations: 51.91 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 5.103e-05/0.7782, allocations: 31.91 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 9.6e-05/0.7783, allocations: 71.64 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002619/0.7785, allocations: 169.4 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.7786, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.292e-06/0.7786, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.7786, allocations: 0 / 1.021 GB, free: 14.41 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.0009516/0.7795, allocations: 490.5 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.7796, allocations: 15.97 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002417/0.7798, allocations: 28.73 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.7802, allocations: 212 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.7803, allocations: 42.45 kB / 1.022 GB, free: 13.53 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.7803, allocations: 16.12 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003395/0.7807, allocations: 136.8 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.7807, allocations: 3.938 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.153e-05/0.7807, allocations: 4 kB / 1.022 GB, free: 13.36 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.7808, allocations: 15.92 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002695/0.781, allocations: 79.95 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001006/0.782, allocations: 0.6402 MB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002734/0.7823, allocations: 62.5 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.273e-05/0.7824, allocations: 32.91 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.3e-05/0.7825, allocations: 0 / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002429/0.7827, allocations: 146.8 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.7827, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004356/0.7832, allocations: 163.3 kB / 1.023 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.7833, allocations: 132.5 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.7835, allocations: 186.2 kB / 1.024 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.7835, allocations: 29.7 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.000121/0.7836, allocations: 135.8 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.511e-05/0.7837, allocations: 23.66 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.822e-05/0.7838, allocations: 41.7 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001538/0.7839, allocations: 318.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.784, allocations: 43.97 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.7842, allocations: 107.3 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003619/0.7846, allocations: 238.3 kB / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.7846, allocations: 0 / 1.024 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004125/0.785, allocations: 244.5 kB / 1.025 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.594e-05/0.7851, allocations: 65.73 kB / 1.025 GB, free: 10.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.7851, allocations: 11.94 kB / 1.025 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.7851, allocations: 4 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001283/0.7853, allocations: 31.92 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.7853, allocations: 4 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.7854, allocations: 27.83 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.7855, allocations: 4 kB / 1.025 GB, free: 10.32 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 (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.000154/0.7856, allocations: 164.6 kB / 1.025 GB, free: 10.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.106e-05/0.7856, allocations: 23.81 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/0.7857, allocations: 13.34 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.7857, allocations: 0 / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.7857, allocations: 0 / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.7857, allocations: 11.95 kB / 1.025 GB, free: 10.1 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002027/0.7859, allocations: 209.6 kB / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.7859, allocations: 0 / 1.025 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.323e-05/0.786, allocations: 11.98 kB / 1.025 GB, free: 9.832 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.786, allocations: 4 kB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.307e-05/0.7861, allocations: 3.938 kB / 1.025 GB, free: 9.824 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.7861, allocations: 4 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.7861, allocations: 0 / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004204/0.7865, allocations: 214.7 kB / 1.025 GB, free: 9.586 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.589e-05/0.7866, allocations: 92.8 kB / 1.026 GB, free: 9.477 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.828e-05/0.7866, allocations: 15.95 kB / 1.026 GB, free: 9.461 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.314e-05/0.7867, allocations: 8 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.7868, allocations: 12.05 kB / 1.026 GB, free: 9.441 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.528e-06/0.7868, allocations: 4 kB / 1.026 GB, free: 9.438 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001364/0.787, allocations: 136.8 kB / 1.026 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.787, allocations: 0 / 1.026 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002588/0.7872, allocations: 28 kB / 1.026 GB, free: 9.277 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 (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.0001278/0.7874, allocations: 103.2 kB / 1.026 GB, free: 9.164 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003984/0.7878, allocations: 223.2 kB / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7878, allocations: 0 / 1.026 GB, free: 8.922 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002459/0.788, allocations: 103.4 kB / 1.026 GB, free: 8.809 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002651/0.7883, allocations: 27.86 kB / 1.026 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007205/0.789, allocations: 290.3 kB / 1.026 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.7895, allocations: 0.7158 MB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 8.525e-05/0.7896, allocations: 20.62 kB / 1.027 GB, free: 7.711 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.12e-05/0.7897, allocations: 15.44 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of SimCode: time 3.11e-07/0.7897, allocations: 0 / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of Templates: time 0.00516/0.7949, allocations: 1.385 MB / 1.029 GB, free: 6.324 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=400 -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