Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor") [: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.173/1.173, allocations: 249.4 MB / 256.7 MB, free: 7 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.001006/0.001006, allocations: 180.5 kB / 316 MB, free: 3.582 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.01/1.01, allocations: 205.1 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.0008271/0.0008272, allocations: 85.7 kB / 0.671 GB, free: 4.734 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.57e-06/5.6e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8082/0.9382, allocations: 395.3 MB / 1.271 GB, free: 322 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.9385, allocations: 97.84 kB / 1.271 GB, free: 322 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.4793/1.418, allocations: 292.3 MB / 1.556 GB, free: 55.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.795e-05/1.418, allocations: 23.94 kB / 1.556 GB, free: 55.48 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001619/1.42, allocations: 1.232 MB / 1.557 GB, free: 54.19 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.758e-05/1.42, allocations: 12.03 kB / 1.557 GB, free: 54.18 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/1.42, allocations: 118.6 kB / 1.558 GB, free: 54.06 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009968/1.421, allocations: 0.6803 MB / 1.558 GB, free: 53.34 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/1.421, allocations: 19.91 kB / 1.558 GB, free: 53.32 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/1.421, allocations: 40 kB / 1.558 GB, free: 53.28 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000551/1.421, allocations: 394.5 kB / 1.559 GB, free: 52.89 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006699/1.422, allocations: 0.5741 MB / 1.559 GB, free: 52.28 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/1.422, allocations: 3.938 kB / 1.559 GB, free: 52.28 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.439e-05/1.422, allocations: 0 / 1.559 GB, free: 52.28 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.978e-06/1.422, allocations: 16 kB / 1.559 GB, free: 52.26 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002296/1.424, allocations: 2.455 MB / 1.562 GB, free: 49.7 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004036/1.425, allocations: 333.8 kB / 1.562 GB, free: 49.36 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000205/1.425, allocations: 193 kB / 1.562 GB, free: 49.17 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002029/1.425, allocations: 352.3 kB / 1.562 GB, free: 48.75 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002995/1.426, allocations: 321.3 kB / 1.563 GB, free: 48.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=37): time 1.403e-06/1.426, allocations: 0 / 1.563 GB, free: 48.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37): time 0.001133/1.427, allocations: 0.5518 MB / 1.563 GB, free: 47.84 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.832e-05/1.427, allocations: 239.6 kB / 1.564 GB, free: 47.55 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/1.427, allocations: 0.5867 MB / 1.564 GB, free: 46.96 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 4.377e-05/1.427, allocations: 33.7 kB / 1.564 GB, free: 46.92 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/1.427, allocations: 319.8 kB / 1.564 GB, free: 46.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/1.428, allocations: 122.4 kB / 1.565 GB, free: 46.48 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.717e-05/1.428, allocations: 0 / 1.565 GB, free: 46.48 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 3.977e-05/1.428, allocations: 326 kB / 1.565 GB, free: 46.16 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002425/1.428, allocations: 189.3 kB / 1.565 GB, free: 45.97 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/1.428, allocations: 372 kB / 1.565 GB, free: 45.53 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007406/1.429, allocations: 325 kB / 1.566 GB, free: 45.21 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/1.429, allocations: 11.91 kB / 1.566 GB, free: 45.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001214/1.43, allocations: 0.6942 MB / 1.566 GB, free: 44.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.43, allocations: 1.054 MB / 1.567 GB, free: 43.36 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/1.43, allocations: 0 / 1.567 GB, free: 43.36 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/1.43, allocations: 8 kB / 1.567 GB, free: 43.36 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/1.431, allocations: 159.7 kB / 1.568 GB, free: 43.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006923/1.432, allocations: 1.805 MB / 1.569 GB, free: 41.32 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008145/1.433, allocations: 111.5 kB / 1.569 GB, free: 41.21 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.509e-05/1.433, allocations: 31.98 kB / 1.57 GB, free: 41.18 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.962e-06/1.433, allocations: 4 kB / 1.57 GB, free: 41.18 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00131/1.434, allocations: 0.5685 MB / 1.57 GB, free: 40.61 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/1.434, allocations: 4 kB / 1.57 GB, free: 40.61 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.633e-06/1.434, allocations: 4 kB / 1.57 GB, free: 40.61 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006007/1.435, allocations: 136.1 kB / 1.57 GB, free: 40.47 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/1.435, allocations: 8 kB / 1.57 GB, free: 40.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000704/1.436, allocations: 99.52 kB / 1.57 GB, free: 40.37 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.638e-05/1.436, allocations: 35.98 kB / 1.57 GB, free: 40.33 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,mot.int.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000143/1.436, allocations: 152.6 kB / 1.57 GB, free: 40.17 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.413e-05/1.436, allocations: 82.97 kB / 1.571 GB, free: 40.09 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001611/1.438, allocations: 0.6609 MB / 1.571 GB, free: 39.42 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.405e-06/1.438, allocations: 8 kB / 1.571 GB, free: 39.41 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/1.438, allocations: 0 / 1.571 GB, free: 39.41 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.164e-06/1.438, allocations: 0 / 1.571 GB, free: 39.41 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/1.44, allocations: 1.463 MB / 1.573 GB, free: 37.89 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/1.44, allocations: 4 kB / 1.573 GB, free: 37.89 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005045/1.44, allocations: 103.8 kB / 1.573 GB, free: 37.79 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/1.44, allocations: 4 kB / 1.573 GB, free: 37.78 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.051e-05/1.44, allocations: 15.98 kB / 1.573 GB, free: 37.77 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004976/1.441, allocations: 1.778 MB / 1.575 GB, free: 35.92 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/1.441, allocations: 0 / 1.575 GB, free: 35.92 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001622/1.443, allocations: 1.164 MB / 1.576 GB, free: 34.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000322/1.443, allocations: 224.7 kB / 1.576 GB, free: 34.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001389/1.443, allocations: 8 kB / 1.576 GB, free: 34.46 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000696/1.444, allocations: 75.89 kB / 1.576 GB, free: 34.38 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/1.444, allocations: 43.92 kB / 1.576 GB, free: 34.34 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/1.444, allocations: 20 kB / 1.576 GB, free: 34.32 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0004352/1.444, allocations: 455.1 kB / 1.576 GB, free: 33.88 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001162/1.446, allocations: 486.8 kB / 1.577 GB, free: 33.41 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006661/1.446, allocations: 492.3 kB / 1.577 GB, free: 32.93 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001426/1.448, allocations: 0.8394 MB / 1.578 GB, free: 32.07 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/1.448, allocations: 0 / 1.578 GB, free: 32.07 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004634/1.448, allocations: 301.8 kB / 1.578 GB, free: 31.77 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/1.45, allocations: 310 kB / 1.579 GB, free: 31.47 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001675/1.451, allocations: 1.05 MB / 1.58 GB, free: 30.38 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004407/1.452, allocations: 1.095 MB / 1.581 GB, free: 29.25 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/1.452, allocations: 0 / 1.581 GB, free: 29.25 MB / 0.8698 GB Notification: Performance of Templates: time 0.02086/1.473, allocations: 17.33 MB / 1.598 GB, free: 12.08 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches