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.001399/0.001399, allocations: 106.7 kB / 16.4 MB, free: 6.016 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.001224/0.001224, allocations: 195.4 kB / 17.34 MB, free: 5.602 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.475/1.475, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.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.717/2.717, allocations: 437.1 MB / 0.7112 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.83 kB / 1.019 GB, free: 9.414 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.064, allocations: 151.6 MB / 1.167 GB, free: 3.973 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.005071/1.069, allocations: 2.311 MB / 1.17 GB, free: 1.652 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001465/1.071, allocations: 0.7831 MB / 1.17 GB, free: 0.8633 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/1.071, allocations: 7.938 kB / 1.17 GB, free: 0.8555 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0006704/1.071, allocations: 147.3 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002112/1.072, allocations: 67.59 kB / 1.171 GB, free: 0.6445 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/1.072, allocations: 51.88 kB / 1.171 GB, free: 0.5938 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002826/1.072, allocations: 159.5 kB / 1.171 GB, free: 448 kB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/1.072, allocations: 97.05 kB / 1.171 GB, free: 348 kB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/1.073, allocations: 59.72 kB / 1.171 GB, free: 288 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/1.073, allocations: 75.73 kB / 1.171 GB, free: 212 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/1.073, allocations: 12 kB / 1.171 GB, free: 200 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001259/1.073, allocations: 55.89 kB / 1.171 GB, free: 144 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 7.117e-05/1.073, allocations: 35.84 kB / 1.171 GB, free: 108 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.000103/1.073, allocations: 63.67 kB / 1.171 GB, free: 44 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003245/1.073, allocations: 172.3 kB / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/1.073, allocations: 0 / 1.171 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.944e-06/1.073, allocations: 3.938 kB / 1.171 GB, free: 15.87 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 7.334e-06/1.073, allocations: 0 / 1.171 GB, free: 15.87 MB / 0.9044 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.0009659/1.074, allocations: 0.4944 MB / 1.172 GB, free: 15.32 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/1.074, allocations: 8.031 kB / 1.172 GB, free: 15.31 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/1.075, allocations: 32.83 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/1.075, allocations: 212.1 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.812e-05/1.075, allocations: 34.45 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.497e-05/1.075, allocations: 24.05 kB / 1.172 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003243/1.076, allocations: 150.8 kB / 1.172 GB, free: 14.81 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/1.076, allocations: 3.938 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/1.076, allocations: 0 / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/1.076, allocations: 7.984 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/1.076, allocations: 83.95 kB / 1.172 GB, free: 14.71 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/1.077, allocations: 0.6403 MB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002826/1.077, allocations: 58.5 kB / 1.173 GB, free: 13.95 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.477e-05/1.077, allocations: 28.91 kB / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/1.077, allocations: 0 / 1.173 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/1.077, allocations: 150.7 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.563e-06/1.077, allocations: 0 / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7): time 0.0004295/1.078, allocations: 163.6 kB / 1.173 GB, free: 13.57 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/1.078, allocations: 132.5 kB / 1.173 GB, free: 13.41 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/1.078, allocations: 187.3 kB / 1.174 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.25e-05/1.078, allocations: 25.7 kB / 1.174 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/1.078, allocations: 148 kB / 1.174 GB, free: 13.04 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/1.078, allocations: 19.89 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.867e-05/1.079, allocations: 41.67 kB / 1.174 GB, free: 12.97 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001724/1.079, allocations: 326.8 kB / 1.174 GB, free: 12.64 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.901e-05/1.079, allocations: 39.88 kB / 1.174 GB, free: 12.6 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001633/1.079, allocations: 109.4 kB / 1.174 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003185/1.079, allocations: 230.3 kB / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/1.079, allocations: 0 / 1.174 GB, free: 12.18 MB / 0.9044 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0004151/1.08, allocations: 252.7 kB / 1.175 GB, free: 11.92 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 8.374e-05/1.08, allocations: 63.39 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.101e-05/1.08, allocations: 8.016 kB / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.901e-05/1.08, allocations: 0 / 1.175 GB, free: 11.84 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/1.08, allocations: 31.92 kB / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.376e-05/1.08, allocations: 7.984 kB / 1.175 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001341/1.08, allocations: 27.88 kB / 1.175 GB, free: 11.77 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/1.08, allocations: 12.28 kB / 1.175 GB, free: 11.76 MB / 0.9044 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.0001867/1.08, allocations: 169.5 kB / 1.175 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.382e-05/1.08, allocations: 15.89 kB / 1.175 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.974e-05/1.08, allocations: 17.34 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/1.08, allocations: 0 / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/1.08, allocations: 0 / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/1.081, allocations: 7.984 kB / 1.175 GB, free: 11.54 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002286/1.081, allocations: 209.6 kB / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/1.081, allocations: 0 / 1.175 GB, free: 11.28 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.377e-05/1.081, allocations: 19.98 kB / 1.175 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/1.081, allocations: 0 / 1.175 GB, free: 11.26 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/1.081, allocations: 7.938 kB / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/1.081, allocations: 0 / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/1.081, allocations: 0 / 1.175 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/1.081, allocations: 210.7 kB / 1.176 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.881e-05/1.081, allocations: 96.97 kB / 1.176 GB, free: 10.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.492e-05/1.081, allocations: 16 kB / 1.176 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/1.082, allocations: 4 kB / 1.176 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.32e-05/1.082, allocations: 12.08 kB / 1.176 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.022e-05/1.082, allocations: 4 kB / 1.176 GB, free: 10.88 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001317/1.082, allocations: 140.8 kB / 1.176 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.6e-07/1.082, allocations: 0 / 1.176 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002518/1.082, allocations: 28 kB / 1.176 GB, free: 10.71 MB / 0.9044 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.0001497/1.082, allocations: 107.2 kB / 1.176 GB, free: 10.6 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003829/1.083, allocations: 218.6 kB / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/1.083, allocations: 0 / 1.176 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/1.083, allocations: 103.4 kB / 1.176 GB, free: 10.25 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002553/1.083, allocations: 15.94 kB / 1.176 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007097/1.084, allocations: 294.6 kB / 1.177 GB, free: 9.914 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004583/1.084, allocations: 0.7119 MB / 1.177 GB, free: 9.176 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.754e-05/1.084, allocations: 24.62 kB / 1.177 GB, free: 9.152 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.713e-05/1.084, allocations: 11.44 kB / 1.177 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of SimCode: time 2.2e-07/1.084, allocations: 0 / 1.177 GB, free: 9.141 MB / 0.9044 GB Notification: Performance of Templates: time 0.005019/1.089, allocations: 1.426 MB / 1.179 GB, free: 7.727 MB / 0.9044 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches