Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.883/1.883, allocations: 387.2 MB / 394.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 177.3 kB / 487 MB, free: 5.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 221.3 MB / 0.7819 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 101.2 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.722e-06/6.752e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2392, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8022/1.041, allocations: 400 MB / 1.596 GB, free: 7.059 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/1.042, allocations: 98.05 kB / 1.596 GB, free: 7.004 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.9969/2.039, allocations: 306.4 MB / 1.895 GB, free: 260 MB / 1.135 GB Notification: Performance of Transformations before backend: time 6.241e-05/2.039, allocations: 24 kB / 1.895 GB, free: 259.9 MB / 1.135 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.001822/2.041, allocations: 1.251 MB / 1.896 GB, free: 258.7 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/2.041, allocations: 15.97 kB / 1.897 GB, free: 258.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/2.041, allocations: 118.6 kB / 1.897 GB, free: 258.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001054/2.042, allocations: 0.6708 MB / 1.897 GB, free: 257.8 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.716e-05/2.042, allocations: 20 kB / 1.897 GB, free: 257.8 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.651e-05/2.042, allocations: 44 kB / 1.897 GB, free: 257.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006053/2.043, allocations: 398.5 kB / 1.898 GB, free: 257.4 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007015/2.043, allocations: 0.5779 MB / 1.898 GB, free: 256.8 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/2.043, allocations: 3.938 kB / 1.898 GB, free: 256.8 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.572e-05/2.043, allocations: 4 kB / 1.898 GB, free: 256.7 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.798e-06/2.043, allocations: 12 kB / 1.898 GB, free: 256.7 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002461/2.046, allocations: 2.466 MB / 1.901 GB, free: 254.2 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004377/2.046, allocations: 334.6 kB / 1.901 GB, free: 253.8 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002429/2.047, allocations: 189.2 kB / 1.901 GB, free: 253.7 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002247/2.047, allocations: 347.3 kB / 1.902 GB, free: 253.2 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/2.047, allocations: 317.4 kB / 1.902 GB, free: 252.9 MB / 1.135 GB Notification: Performance of pre-optimization done (n=37): time 1.903e-06/2.047, allocations: 0 / 1.902 GB, free: 252.9 MB / 1.135 GB Notification: Performance of matching and sorting (n=37): time 0.00123/2.048, allocations: 0.5475 MB / 1.902 GB, free: 252.3 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/2.048, allocations: 247.5 kB / 1.903 GB, free: 252 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/2.049, allocations: 0.5946 MB / 1.903 GB, free: 251.4 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/2.049, allocations: 33.64 kB / 1.903 GB, free: 251.4 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001322/2.049, allocations: 316.5 kB / 1.904 GB, free: 251.1 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 6.998e-05/2.049, allocations: 119 kB / 1.904 GB, free: 251 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-05/2.049, allocations: 0 / 1.904 GB, free: 251 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 4.762e-05/2.049, allocations: 334 kB / 1.904 GB, free: 250.6 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002614/2.05, allocations: 189.3 kB / 1.904 GB, free: 250.5 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003249/2.05, allocations: 387.9 kB / 1.905 GB, free: 250 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000789/2.051, allocations: 325 kB / 1.905 GB, free: 249.7 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/2.051, allocations: 0 / 1.905 GB, free: 249.7 MB / 1.135 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00127/2.052, allocations: 0.7023 MB / 1.905 GB, free: 249 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001524/2.052, allocations: 1.054 MB / 1.907 GB, free: 247.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/2.052, allocations: 0 / 1.907 GB, free: 247.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/2.052, allocations: 8 kB / 1.907 GB, free: 247.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009443/2.053, allocations: 160.6 kB / 1.907 GB, free: 247.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006814/2.054, allocations: 1.801 MB / 1.908 GB, free: 245.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007358/2.055, allocations: 119.5 kB / 1.909 GB, free: 245.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.359e-05/2.055, allocations: 32 kB / 1.909 GB, free: 245.6 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 6.232e-06/2.055, allocations: 10.28 kB / 1.909 GB, free: 245.6 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001124/2.056, allocations: 0.5646 MB / 1.909 GB, free: 245.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.627e-06/2.056, allocations: 4.344 kB / 1.909 GB, free: 245.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.701e-06/2.056, allocations: 8 kB / 1.909 GB, free: 245.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005015/2.056, allocations: 135.8 kB / 1.909 GB, free: 244.9 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/2.056, allocations: 8 kB / 1.909 GB, free: 244.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006197/2.057, allocations: 103.5 kB / 1.909 GB, free: 244.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.812e-05/2.057, allocations: 35.92 kB / 1.909 GB, free: 244.8 MB / 1.135 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.0001528/2.057, allocations: 155.8 kB / 1.91 GB, free: 244.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.782e-05/2.057, allocations: 90.86 kB / 1.91 GB, free: 244.5 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/2.059, allocations: 0.6648 MB / 1.91 GB, free: 243.9 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/2.059, allocations: 7.906 kB / 1.91 GB, free: 243.8 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/2.059, allocations: 0 / 1.91 GB, free: 243.8 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.353e-06/2.059, allocations: 7.984 kB / 1.91 GB, free: 243.8 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/2.061, allocations: 1.464 MB / 1.912 GB, free: 242.3 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/2.061, allocations: 4 kB / 1.912 GB, free: 242.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004183/2.061, allocations: 97.75 kB / 1.912 GB, free: 242.2 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/2.061, allocations: 4 kB / 1.912 GB, free: 242.2 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.688e-05/2.061, allocations: 11.98 kB / 1.912 GB, free: 242.2 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004899/2.062, allocations: 1.778 MB / 1.914 GB, free: 240.4 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/2.062, allocations: 8.031 kB / 1.914 GB, free: 240.4 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001445/2.063, allocations: 1.164 MB / 1.915 GB, free: 239.1 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003052/2.064, allocations: 232.7 kB / 1.915 GB, free: 238.9 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/2.064, allocations: 4 kB / 1.915 GB, free: 238.9 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006031/2.064, allocations: 79.83 kB / 1.915 GB, free: 238.8 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/2.064, allocations: 39.94 kB / 1.915 GB, free: 238.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/2.064, allocations: 27.98 kB / 1.915 GB, free: 238.8 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0004125/2.065, allocations: 455.1 kB / 1.916 GB, free: 238.3 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001267/2.066, allocations: 496.2 kB / 1.916 GB, free: 237.8 MB / 1.135 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.0007778/2.067, allocations: 493.5 kB / 1.917 GB, free: 237.4 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001587/2.069, allocations: 0.841 MB / 1.917 GB, free: 236.5 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/2.069, allocations: 0 / 1.917 GB, free: 236.5 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004619/2.069, allocations: 313.5 kB / 1.918 GB, free: 236.2 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/2.071, allocations: 292 kB / 1.918 GB, free: 235.9 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001882/2.072, allocations: 1.065 MB / 1.919 GB, free: 234.8 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005075/2.073, allocations: 1.088 MB / 1.92 GB, free: 233.7 MB / 1.135 GB Notification: Performance of SimCode: time 3.91e-07/2.073, allocations: 0 / 1.92 GB, free: 233.7 MB / 1.135 GB Notification: Performance of Templates: time 0.02429/2.097, allocations: 17.32 MB / 1.937 GB, free: 216.6 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches