Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.175/1.175, allocations: 249.4 MB / 256.7 MB, free: 7.008 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009835/0.0009835, allocations: 176.4 kB / 316 MB, free: 3.547 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9979/0.9979, allocations: 205.2 MB / 0.5667 GB, free: 15.61 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008159/0.0008159, allocations: 82.34 kB / 0.671 GB, free: 4.75 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.232e-06/6.252e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1345, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8645/0.999, allocations: 424.9 MB / 1.3 GB, free: 289.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.9992, allocations: 99.11 kB / 1.3 GB, free: 289.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.084/3.083, allocations: 0.9446 GB / 2.244 GB, free: 6.547 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000202/3.083, allocations: 87.84 kB / 2.244 GB, free: 6.461 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.003567/3.087, allocations: 2.525 MB / 2.247 GB, free: 3.879 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/3.087, allocations: 12.03 kB / 2.247 GB, free: 3.867 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006324/3.087, allocations: 324.2 kB / 2.247 GB, free: 3.547 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003656/3.091, allocations: 2.429 MB / 2.249 GB, free: 1.047 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/3.091, allocations: 44 kB / 2.25 GB, free: 1.004 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/3.091, allocations: 107.9 kB / 2.25 GB, free: 0.8984 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001581/3.093, allocations: 0.9861 MB / 2.251 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/3.095, allocations: 1.298 MB / 2.252 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.631e-05/3.095, allocations: 0 / 2.252 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.996e-05/3.095, allocations: 4 kB / 2.252 GB, free: 14.54 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.947e-05/3.095, allocations: 51.92 kB / 2.252 GB, free: 14.49 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009531/3.105, allocations: 7.989 MB / 2.26 GB, free: 6.023 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005731/3.105, allocations: 403.8 kB / 2.26 GB, free: 5.625 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004026/3.106, allocations: 314.8 kB / 2.26 GB, free: 5.312 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006036/3.106, allocations: 0.7523 MB / 2.261 GB, free: 4.395 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/3.106, allocations: 47.06 kB / 2.261 GB, free: 4.34 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 2.985e-06/3.106, allocations: 0 / 2.261 GB, free: 4.34 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.001526/3.108, allocations: 0.7244 MB / 2.262 GB, free: 3.605 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.606e-05/3.108, allocations: 55.91 kB / 2.262 GB, free: 3.539 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0022/3.11, allocations: 1.669 MB / 2.264 GB, free: 1.848 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 9.516e-05/3.11, allocations: 29.7 kB / 2.264 GB, free: 1.812 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005408/3.111, allocations: 0.75 MB / 2.264 GB, free: 1.043 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.000195/3.111, allocations: 208.9 kB / 2.265 GB, free: 0.8359 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.195e-05/3.111, allocations: 0 / 2.265 GB, free: 0.8359 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001292/3.111, allocations: 353.8 kB / 2.265 GB, free: 496 kB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/3.112, allocations: 306.6 kB / 2.265 GB, free: 188 kB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2631/3.375, allocations: 0.7601 MB / 2.266 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008676/3.376, allocations: 455.5 kB / 2.266 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/3.376, allocations: 0 / 2.266 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001821/3.378, allocations: 1.118 MB / 2.267 GB, free: 183.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003996/3.378, allocations: 3.153 MB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/3.378, allocations: 7.938 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/3.378, allocations: 16.59 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009535/3.379, allocations: 258.2 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/3.379, allocations: 17.44 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/3.381, allocations: 199.4 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.506e-05/3.381, allocations: 55.34 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 5.651e-06/3.381, allocations: 6.094 kB / 2.271 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001201/3.382, allocations: 0.8564 MB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/3.382, allocations: 6.812 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/3.382, allocations: 12.06 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008608/3.383, allocations: 255.9 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/3.383, allocations: 17.44 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/3.384, allocations: 175.9 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.74e-05/3.384, allocations: 51.62 kB / 2.272 GB, free: 179.8 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * 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.000167/3.384, allocations: 138.5 kB / 2.273 GB, free: 179.7 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/3.385, allocations: 209.5 kB / 2.273 GB, free: 179.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001462/3.386, allocations: 0.8425 MB / 2.274 GB, free: 179.6 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/3.386, allocations: 7.406 kB / 2.274 GB, free: 179.6 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/3.386, allocations: 5.406 kB / 2.274 GB, free: 179.6 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007668/3.387, allocations: 0.6613 MB / 2.274 GB, free: 179.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/3.39, allocations: 2.389 MB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/3.39, allocations: 3.781 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005433/3.39, allocations: 145.9 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/3.39, allocations: 3.719 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/3.39, allocations: 12.62 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/3.39, allocations: 5.688 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/3.39, allocations: 4.5 kB / 2.277 GB, free: 179.1 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001314/3.392, allocations: 1.276 MB / 2.278 GB, free: 178.7 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005127/3.392, allocations: 427.9 kB / 2.278 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002455/3.393, allocations: 7.688 kB / 2.278 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/3.394, allocations: 152.5 kB / 2.278 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.159e-05/3.394, allocations: 44.17 kB / 2.279 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.057e-05/3.394, allocations: 36.91 kB / 2.279 GB, free: 178.5 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001258/3.395, allocations: 1.228 MB / 2.28 GB, free: 178.4 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002586/3.398, allocations: 1.224 MB / 2.281 GB, free: 178.3 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001513/3.399, allocations: 1.187 MB / 2.282 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001445/3.401, allocations: 1.317 MB / 2.283 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/3.401, allocations: 3.094 kB / 2.283 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003092/3.401, allocations: 303.1 kB / 2.284 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004877/3.406, allocations: 1.235 MB / 2.285 GB, free: 178.1 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/3.41, allocations: 2.832 MB / 2.288 GB, free: 177.3 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001144/3.411, allocations: 1.818 MB / 2.289 GB, free: 176.6 MB / 0.8855 GB Notification: Performance of SimCode: time 2.61e-07/3.411, allocations: 0 / 2.289 GB, free: 176.6 MB / 0.8855 GB Notification: Performance of Templates: time 0.06115/3.472, allocations: 48.5 MB / 2.337 GB, free: 175.3 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches