Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [: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.898/1.898, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.001055/0.001055, allocations: 189.2 kB / 487 MB, free: 5.34 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.312/1.312, allocations: 221.3 MB / 0.7819 GB, free: 1.371 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.0008713/0.0008712, allocations: 93.98 kB / 0.9213 GB, free: 2.629 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.081e-06/6.101e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2289, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8905/1.12, allocations: 396.5 MB / 1.592 GB, free: 10.43 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002253/1.12, allocations: 99.48 kB / 1.593 GB, free: 10.38 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.7718/1.892, allocations: 177.8 MB / 1.766 GB, free: 369.2 MB / 1.135 GB Notification: Performance of Transformations before backend: time 4.108e-05/1.892, allocations: 19.78 kB / 1.766 GB, free: 369.2 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009488/1.893, allocations: 0.7431 MB / 1.767 GB, free: 368.7 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/1.893, allocations: 11.81 kB / 1.767 GB, free: 368.7 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.57e-05/1.893, allocations: 54.84 kB / 1.767 GB, free: 368.6 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005948/1.893, allocations: 434.2 kB / 1.767 GB, free: 368.3 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.384e-05/1.893, allocations: 3.625 kB / 1.767 GB, free: 368.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.855e-05/1.893, allocations: 20.69 kB / 1.767 GB, free: 368.3 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002337/1.894, allocations: 129.7 kB / 1.768 GB, free: 368.3 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002444/1.894, allocations: 161.1 kB / 1.768 GB, free: 368.2 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/1.894, allocations: 0 / 1.768 GB, free: 368.2 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/1.894, allocations: 0 / 1.768 GB, free: 368.2 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/1.894, allocations: 11.77 kB / 1.768 GB, free: 368.2 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/1.895, allocations: 0.8825 MB / 1.769 GB, free: 367.7 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/1.895, allocations: 115.1 kB / 1.769 GB, free: 367.6 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.415e-05/1.895, allocations: 57.12 kB / 1.769 GB, free: 367.6 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001994/1.896, allocations: 339.5 kB / 1.769 GB, free: 367.2 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/1.896, allocations: 37.44 kB / 1.769 GB, free: 367.2 MB / 1.135 GB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/1.896, allocations: 0 / 1.769 GB, free: 367.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=14): time 0.0003722/1.896, allocations: 157 kB / 1.769 GB, free: 367.1 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/1.896, allocations: 55.53 kB / 1.769 GB, free: 367 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/1.896, allocations: 364.7 kB / 1.77 GB, free: 366.9 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/1.896, allocations: 25.7 kB / 1.77 GB, free: 366.8 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 9.125e-05/1.896, allocations: 180.9 kB / 1.77 GB, free: 366.7 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/1.896, allocations: 42.78 kB / 1.77 GB, free: 366.7 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.046e-05/1.896, allocations: 0 / 1.77 GB, free: 366.7 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.995e-05/1.897, allocations: 352.5 kB / 1.77 GB, free: 366.3 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.058e-05/1.897, allocations: 54.44 kB / 1.77 GB, free: 366.3 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/1.897, allocations: 150.9 kB / 1.77 GB, free: 366.2 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/1.897, allocations: 74.47 kB / 1.77 GB, free: 366.2 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/1.897, allocations: 0 / 1.77 GB, free: 366.2 MB / 1.135 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003474/1.897, allocations: 220.5 kB / 1.771 GB, free: 366.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 4.842e-05/1.897, allocations: 268.9 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/1.897, allocations: 3.938 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/1.897, allocations: 7.281 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/1.898, allocations: 55.44 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/1.898, allocations: 3.938 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003389/1.898, allocations: 38.25 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.833e-05/1.898, allocations: 11.59 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 4.748e-06/1.898, allocations: 7.906 kB / 1.771 GB, free: 365.8 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002757/1.898, allocations: 141.3 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.973e-06/1.898, allocations: 3.594 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-06/1.898, allocations: 4.594 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/1.899, allocations: 53.62 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.394e-06/1.899, allocations: 3.984 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003101/1.899, allocations: 41.75 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/1.899, allocations: 11.2 kB / 1.771 GB, free: 365.7 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 6.113e-05/1.899, allocations: 112.3 kB / 1.771 GB, free: 365.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/1.899, allocations: 42.25 kB / 1.771 GB, free: 365.6 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004134/1.899, allocations: 221.2 kB / 1.772 GB, free: 365.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/1.899, allocations: 3.781 kB / 1.772 GB, free: 365.5 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/1.899, allocations: 3.281 kB / 1.772 GB, free: 365.5 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/1.899, allocations: 0 / 1.772 GB, free: 365.5 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006637/1.9, allocations: 0.6282 MB / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/1.9, allocations: 0 / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/1.9, allocations: 40.47 kB / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/1.9, allocations: 3.969 kB / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/1.9, allocations: 3.875 kB / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/1.9, allocations: 0 / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.561e-05/1.9, allocations: 3.906 kB / 1.772 GB, free: 365.1 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003018/1.901, allocations: 360.7 kB / 1.773 GB, free: 364.8 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/1.901, allocations: 142.2 kB / 1.773 GB, free: 364.7 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.315e-05/1.901, allocations: 3.969 kB / 1.773 GB, free: 364.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/1.901, allocations: 26.62 kB / 1.773 GB, free: 364.7 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/1.901, allocations: 16.06 kB / 1.773 GB, free: 364.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.236e-05/1.901, allocations: 7.828 kB / 1.773 GB, free: 364.7 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0002063/1.901, allocations: 280.2 kB / 1.773 GB, free: 364.5 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.0006262/1.902, allocations: 234 kB / 1.773 GB, free: 364.4 MB / 1.135 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0007673/1.903, allocations: 488.9 kB / 1.774 GB, free: 364.3 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.0003342/1.903, allocations: 238.7 kB / 1.774 GB, free: 364.2 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/1.903, allocations: 3.312 kB / 1.774 GB, free: 364.2 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 9.062e-05/1.903, allocations: 64.27 kB / 1.774 GB, free: 364.2 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008925/1.904, allocations: 193.2 kB / 1.774 GB, free: 364.2 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008243/1.905, allocations: 0.4953 MB / 1.775 GB, free: 363.9 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002928/1.905, allocations: 0.8762 MB / 1.776 GB, free: 363.2 MB / 1.135 GB Notification: Performance of SimCode: time 9.42e-07/1.905, allocations: 0 / 1.776 GB, free: 363.2 MB / 1.135 GB Notification: Performance of Templates: time 0.01695/1.922, allocations: 9.181 MB / 1.785 GB, free: 362.8 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches