Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 6.977 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.0009631/0.000963, allocations: 189.2 kB / 316 MB, free: 3.531 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.002/1.002, allocations: 205.1 MB / 0.5667 GB, free: 15.64 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.0007766/0.0007764, allocations: 94.19 kB / 0.671 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.851e-06/5.871e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1335, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8073/0.9409, allocations: 393.6 MB / 1.269 GB, free: 322.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.9411, allocations: 98.25 kB / 1.269 GB, free: 322.6 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.8287/1.77, allocations: 350.5 MB / 1.611 GB, free: 209.9 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.964e-05/1.77, allocations: 33.31 kB / 1.611 GB, free: 209.9 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001497/1.771, allocations: 1.148 MB / 1.612 GB, free: 209.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.977e-05/1.772, allocations: 10.28 kB / 1.612 GB, free: 209.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001658/1.772, allocations: 118.8 kB / 1.613 GB, free: 209.5 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009762/1.773, allocations: 0.6796 MB / 1.613 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/1.773, allocations: 14.97 kB / 1.613 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/1.773, allocations: 53.53 kB / 1.613 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004738/1.773, allocations: 328.7 kB / 1.614 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005437/1.774, allocations: 455.9 kB / 1.614 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/1.774, allocations: 0 / 1.614 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/1.774, allocations: 3.719 kB / 1.614 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/1.774, allocations: 11.72 kB / 1.614 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/1.776, allocations: 2.389 MB / 1.616 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/1.776, allocations: 256.3 kB / 1.617 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000145/1.777, allocations: 114.8 kB / 1.617 GB, free: 207.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002029/1.777, allocations: 344.2 kB / 1.617 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.26e-05/1.777, allocations: 41.19 kB / 1.617 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/1.777, allocations: 0 / 1.617 GB, free: 207.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29): time 0.001032/1.778, allocations: 426.5 kB / 1.618 GB, free: 207.4 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.427e-05/1.778, allocations: 54.56 kB / 1.618 GB, free: 207.3 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004498/1.778, allocations: 0.5412 MB / 1.618 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 6.149e-05/1.778, allocations: 30.05 kB / 1.618 GB, free: 207.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001535/1.779, allocations: 318.8 kB / 1.618 GB, free: 207 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.79e-05/1.779, allocations: 98.97 kB / 1.619 GB, free: 207 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/1.779, allocations: 0 / 1.619 GB, free: 207 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.165e-05/1.779, allocations: 381.3 kB / 1.619 GB, free: 206.7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001831/1.779, allocations: 124.8 kB / 1.619 GB, free: 206.7 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/1.779, allocations: 0.7601 MB / 1.62 GB, free: 206.1 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007088/1.78, allocations: 312 kB / 1.62 GB, free: 206.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/1.78, allocations: 0 / 1.62 GB, free: 206.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001084/1.781, allocations: 0.5672 MB / 1.621 GB, free: 206 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/1.781, allocations: 0.8021 MB / 1.621 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/1.781, allocations: 3.969 kB / 1.621 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/1.781, allocations: 10.55 kB / 1.621 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/1.783, allocations: 179.9 kB / 1.622 GB, free: 205.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000867/1.783, allocations: 2.398 MB / 1.624 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0014/1.785, allocations: 324.1 kB / 1.624 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/1.785, allocations: 25.61 kB / 1.624 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/1.785, allocations: 3.812 kB / 1.624 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009172/1.786, allocations: 437.5 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/1.786, allocations: 3.812 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.38e-06/1.786, allocations: 3.781 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005333/1.786, allocations: 138.2 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.536e-06/1.786, allocations: 3.812 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001327/1.788, allocations: 317.2 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.089e-05/1.788, allocations: 24.08 kB / 1.625 GB, free: 202.8 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001356/1.788, allocations: 133.6 kB / 1.625 GB, free: 202.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.14e-05/1.788, allocations: 73 kB / 1.625 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/1.789, allocations: 0.511 MB / 1.626 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/1.789, allocations: 5.188 kB / 1.626 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/1.789, allocations: 0 / 1.626 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/1.789, allocations: 7.656 kB / 1.626 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00164/1.791, allocations: 1.09 MB / 1.627 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/1.791, allocations: 3.719 kB / 1.627 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004267/1.791, allocations: 115.5 kB / 1.627 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/1.791, allocations: 3.656 kB / 1.627 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.552e-05/1.791, allocations: 10.69 kB / 1.627 GB, free: 202.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006105/1.792, allocations: 2.363 MB / 1.629 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/1.792, allocations: 3.781 kB / 1.629 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008836/1.793, allocations: 0.6122 MB / 1.63 GB, free: 199.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/1.793, allocations: 194.9 kB / 1.63 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.709e-05/1.793, allocations: 3.438 kB / 1.63 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/1.794, allocations: 55.89 kB / 1.63 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.848e-05/1.794, allocations: 24.03 kB / 1.63 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.38e-05/1.794, allocations: 14.88 kB / 1.63 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0003497/1.794, allocations: 416 kB / 1.631 GB, free: 199.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001163/1.795, allocations: 495.7 kB / 1.631 GB, free: 199.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007037/1.796, allocations: 473.3 kB / 1.632 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001506/1.797, allocations: 0.6429 MB / 1.632 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/1.797, allocations: 0 / 1.632 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004412/1.798, allocations: 182 kB / 1.632 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001535/1.799, allocations: 338.2 kB / 1.633 GB, free: 199.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001388/1.801, allocations: 0.8896 MB / 1.634 GB, free: 199 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/1.801, allocations: 1.066 MB / 1.635 GB, free: 198.3 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/1.801, allocations: 0 / 1.635 GB, free: 198.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.0239/1.825, allocations: 19.69 MB / 1.654 GB, free: 197.9 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches