Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.958/1.958, allocations: 390.4 MB / 397.7 MB, free: 11.21 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.001006/0.001006, allocations: 181.2 kB / 490.8 MB, free: 1.91 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.4 MB / 0.7863 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008922/0.0008922, allocations: 79.69 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.887e-06/8.907e-06, allocations: 3.938 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2721, allocations: 143 MB / 1.212 GB, free: 40.08 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9027/1.175, allocations: 400.8 MB / 1.603 GB, free: 14.41 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/1.175, allocations: 102.1 kB / 1.603 GB, free: 14.36 MB / 1.026 GB Notification: Performance of FrontEnd: time 1.102/2.277, allocations: 306.4 MB / 1.902 GB, free: 305.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001159/2.277, allocations: 30.11 kB / 1.902 GB, free: 305.3 MB / 1.151 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.002868/2.28, allocations: 1.249 MB / 1.904 GB, free: 304 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/2.28, allocations: 8.031 kB / 1.904 GB, free: 304 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004374/2.281, allocations: 122.6 kB / 1.904 GB, free: 303.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001681/2.282, allocations: 0.6782 MB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.598e-05/2.282, allocations: 23.91 kB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/2.283, allocations: 36 kB / 1.904 GB, free: 303.1 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007803/2.283, allocations: 402.5 kB / 1.905 GB, free: 302.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008814/2.284, allocations: 0.574 MB / 1.905 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/2.284, allocations: 0 / 1.905 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.444e-05/2.284, allocations: 3.984 kB / 1.905 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/2.284, allocations: 16 kB / 1.905 GB, free: 302.1 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003401/2.288, allocations: 2.469 MB / 1.908 GB, free: 299.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004752/2.288, allocations: 342.1 kB / 1.908 GB, free: 299.1 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002312/2.288, allocations: 188.8 kB / 1.908 GB, free: 299 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002815/2.289, allocations: 342.8 kB / 1.909 GB, free: 298.5 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/2.289, allocations: 313.2 kB / 1.909 GB, free: 298.2 MB / 1.151 GB Notification: Performance of pre-optimization done (n=37): time 2.305e-06/2.289, allocations: 0 / 1.909 GB, free: 298.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=37): time 0.00155/2.291, allocations: 0.5553 MB / 1.91 GB, free: 297.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.51e-05/2.291, allocations: 243.5 kB / 1.91 GB, free: 297.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007648/2.292, allocations: 0.5946 MB / 1.91 GB, free: 296.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 8.257e-05/2.292, allocations: 37.69 kB / 1.91 GB, free: 296.7 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/2.292, allocations: 310.9 kB / 1.911 GB, free: 296.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.741e-05/2.292, allocations: 114.3 kB / 1.911 GB, free: 296.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.478e-05/2.292, allocations: 4 kB / 1.911 GB, free: 296.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.452e-05/2.292, allocations: 330 kB / 1.911 GB, free: 296 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002813/2.292, allocations: 193.3 kB / 1.911 GB, free: 295.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003632/2.293, allocations: 379.9 kB / 1.912 GB, free: 295.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009076/2.294, allocations: 329 kB / 1.912 GB, free: 295 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/2.294, allocations: 0 / 1.912 GB, free: 295 MB / 1.151 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001472/2.295, allocations: 0.702 MB / 1.913 GB, free: 294.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002308/2.295, allocations: 1.047 MB / 1.914 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/2.295, allocations: 4.547 kB / 1.914 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.613e-05/2.295, allocations: 8 kB / 1.914 GB, free: 293.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/2.296, allocations: 159.7 kB / 1.914 GB, free: 293 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008151/2.297, allocations: 1.801 MB / 1.916 GB, free: 291.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009234/2.298, allocations: 119.5 kB / 1.916 GB, free: 291 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.034e-05/2.298, allocations: 31.98 kB / 1.916 GB, free: 291 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.866e-06/2.298, allocations: 0 / 1.916 GB, free: 291 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001214/2.3, allocations: 0.5685 MB / 1.916 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/2.3, allocations: 7.984 kB / 1.916 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.504e-06/2.3, allocations: 4 kB / 1.916 GB, free: 290.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000531/2.3, allocations: 132.1 kB / 1.916 GB, free: 290.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/2.3, allocations: 8 kB / 1.916 GB, free: 290.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007967/2.301, allocations: 99.52 kB / 1.917 GB, free: 290.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/2.301, allocations: 31.98 kB / 1.917 GB, free: 290.1 MB / 1.151 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.0001947/2.301, allocations: 158.5 kB / 1.917 GB, free: 290 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/2.301, allocations: 82.97 kB / 1.917 GB, free: 289.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001604/2.303, allocations: 0.6805 MB / 1.917 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/2.303, allocations: 8 kB / 1.917 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/2.303, allocations: 0 / 1.917 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/2.303, allocations: 7.891 kB / 1.917 GB, free: 289.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002469/2.306, allocations: 1.465 MB / 1.919 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/2.306, allocations: 128 / 1.919 GB, free: 287.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004468/2.306, allocations: 100.8 kB / 1.919 GB, free: 287.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.608e-06/2.306, allocations: 7.906 kB / 1.919 GB, free: 287.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.107e-05/2.306, allocations: 15.98 kB / 1.919 GB, free: 287.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005377/2.307, allocations: 1.777 MB / 1.921 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/2.307, allocations: 3.938 kB / 1.921 GB, free: 285.7 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001585/2.308, allocations: 1.157 MB / 1.922 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004152/2.309, allocations: 232.6 kB / 1.922 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001765/2.309, allocations: 4 kB / 1.922 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006931/2.31, allocations: 71.89 kB / 1.922 GB, free: 284.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/2.31, allocations: 47.94 kB / 1.922 GB, free: 284.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-05/2.31, allocations: 23.98 kB / 1.922 GB, free: 284.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0005228/2.31, allocations: 463 kB / 1.923 GB, free: 283.6 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001713/2.312, allocations: 495.7 kB / 1.923 GB, free: 283.2 MB / 1.151 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.001215/2.313, allocations: 485.6 kB / 1.924 GB, free: 282.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001907/2.315, allocations: 0.8402 MB / 1.924 GB, free: 281.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/2.315, allocations: 0 / 1.924 GB, free: 281.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0005074/2.316, allocations: 302.4 kB / 1.925 GB, free: 281.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001716/2.317, allocations: 303.5 kB / 1.925 GB, free: 281.3 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/2.32, allocations: 1.066 MB / 1.926 GB, free: 280.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006378/2.321, allocations: 1.092 MB / 1.927 GB, free: 279 MB / 1.151 GB Notification: Performance of SimCode: time 8.02e-07/2.321, allocations: 0 / 1.927 GB, free: 279 MB / 1.151 GB Notification: Performance of Templates: time 0.02762/2.348, allocations: 17.32 MB / 1.944 GB, free: 261.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches