Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") [: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.907/1.907, allocations: 387.2 MB / 394.5 MB, free: 13.72 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.001125/0.001125, allocations: 177 kB / 487 MB, free: 5.379 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.307/1.307, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.0009045/0.0009045, allocations: 87.69 kB / 0.9213 GB, free: 2.66 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.983e-06/7.093e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2258, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7897/1.016, allocations: 394.1 MB / 1.59 GB, free: 12.9 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/1.016, allocations: 89.59 kB / 1.59 GB, free: 12.86 MB / 1.026 GB Notification: Performance of FrontEnd: time 0.9346/1.95, allocations: 240 MB / 1.825 GB, free: 298.5 MB / 1.135 GB Notification: Performance of Transformations before backend: time 5.351e-05/1.951, allocations: 18.84 kB / 1.825 GB, free: 298.5 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001593/1.952, allocations: 0.981 MB / 1.825 GB, free: 297.7 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/1.952, allocations: 9.25 kB / 1.826 GB, free: 297.7 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/1.952, allocations: 79.91 kB / 1.826 GB, free: 297.7 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007898/1.953, allocations: 0.5181 MB / 1.826 GB, free: 297.3 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/1.953, allocations: 14.16 kB / 1.826 GB, free: 297.3 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.03e-05/1.953, allocations: 29.72 kB / 1.826 GB, free: 297.3 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006148/1.954, allocations: 355 kB / 1.826 GB, free: 297.3 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006715/1.955, allocations: 0.511 MB / 1.827 GB, free: 297 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/1.955, allocations: 1.094 kB / 1.827 GB, free: 297 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/1.955, allocations: 2 kB / 1.827 GB, free: 297 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.61e-05/1.955, allocations: 19.59 kB / 1.827 GB, free: 297 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002643/1.957, allocations: 3.111 MB / 1.83 GB, free: 294.5 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004451/1.958, allocations: 268.4 kB / 1.83 GB, free: 294.4 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/1.958, allocations: 181.5 kB / 1.83 GB, free: 294.4 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002906/1.958, allocations: 349.5 kB / 1.831 GB, free: 294 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/1.958, allocations: 39.81 kB / 1.831 GB, free: 294 MB / 1.135 GB Notification: Performance of pre-optimization done (n=38): time 2.104e-06/1.958, allocations: 0 / 1.831 GB, free: 294 MB / 1.135 GB Notification: Performance of matching and sorting (n=38): time 0.002227/1.961, allocations: 0.7057 MB / 1.832 GB, free: 293.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/1.961, allocations: 59.48 kB / 1.832 GB, free: 293.7 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000502/1.961, allocations: 454.8 kB / 1.832 GB, free: 293.5 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 5.219e-05/1.961, allocations: 26.98 kB / 1.832 GB, free: 293.5 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/1.961, allocations: 257.5 kB / 1.832 GB, free: 293.3 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/1.961, allocations: 120.4 kB / 1.832 GB, free: 293.2 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.437e-05/1.962, allocations: 0 / 1.832 GB, free: 293.2 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 9.128e-05/1.962, allocations: 383.5 kB / 1.833 GB, free: 292.9 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002542/1.962, allocations: 146.1 kB / 1.833 GB, free: 292.9 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/1.962, allocations: 334.3 kB / 1.833 GB, free: 292.6 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001487/1.964, allocations: 473 kB / 1.834 GB, free: 292.5 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/1.964, allocations: 1.25 kB / 1.834 GB, free: 292.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002124/1.966, allocations: 0.8339 MB / 1.834 GB, free: 292.2 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003652/1.966, allocations: 1.74 MB / 1.836 GB, free: 290.4 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/1.966, allocations: 4.812 kB / 1.836 GB, free: 290.4 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004301/1.967, allocations: 103.1 kB / 1.836 GB, free: 290.3 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005914/1.967, allocations: 141.3 kB / 1.836 GB, free: 290.3 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009701/1.968, allocations: 0.7293 MB / 1.837 GB, free: 289.7 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007184/1.969, allocations: 95.84 kB / 1.837 GB, free: 289.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-05/1.969, allocations: 34.83 kB / 1.837 GB, free: 289.7 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 7.403e-06/1.969, allocations: 4 kB / 1.837 GB, free: 289.7 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001964/1.971, allocations: 0.7085 MB / 1.838 GB, free: 289.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/1.971, allocations: 3.938 kB / 1.838 GB, free: 289.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/1.971, allocations: 8.625 kB / 1.838 GB, free: 289.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/1.972, allocations: 158.8 kB / 1.838 GB, free: 289.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/1.972, allocations: 19.53 kB / 1.838 GB, free: 289.4 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/1.972, allocations: 82.69 kB / 1.838 GB, free: 289.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.19e-05/1.972, allocations: 33.3 kB / 1.838 GB, free: 289.4 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001464/1.973, allocations: 121.2 kB / 1.838 GB, free: 289.3 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/1.973, allocations: 62.92 kB / 1.838 GB, free: 289.2 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002326/1.975, allocations: 0.8168 MB / 1.839 GB, free: 288.8 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/1.975, allocations: 5.469 kB / 1.839 GB, free: 288.8 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.975, allocations: 0 / 1.839 GB, free: 288.8 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/1.975, allocations: 3.984 kB / 1.839 GB, free: 288.8 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/1.978, allocations: 1.481 MB / 1.841 GB, free: 287.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/1.978, allocations: 9.219 kB / 1.841 GB, free: 287.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/1.979, allocations: 95.53 kB / 1.841 GB, free: 287.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000361/1.979, allocations: 120.7 kB / 1.841 GB, free: 287.7 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.52e-05/1.979, allocations: 13.47 kB / 1.841 GB, free: 287.7 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008756/1.98, allocations: 0.7089 MB / 1.842 GB, free: 287.1 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.98, allocations: 1.406 kB / 1.842 GB, free: 287.1 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002045/1.982, allocations: 0.9254 MB / 1.842 GB, free: 286.5 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000253/1.982, allocations: 188.9 kB / 1.843 GB, free: 286.3 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.613e-05/1.982, allocations: 5.234 kB / 1.843 GB, free: 286.3 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004964/1.983, allocations: 57.33 kB / 1.843 GB, free: 286.3 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.376e-05/1.983, allocations: 29.02 kB / 1.843 GB, free: 286.2 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-05/1.983, allocations: 20.73 kB / 1.843 GB, free: 286.2 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.0003816/1.983, allocations: 337.5 kB / 1.843 GB, free: 286 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.001431/1.985, allocations: 394.8 kB / 1.843 GB, free: 285.9 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008071/1.986, allocations: 415.4 kB / 1.844 GB, free: 285.7 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.001564/1.987, allocations: 0.7205 MB / 1.845 GB, free: 285.4 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/1.987, allocations: 0 / 1.845 GB, free: 285.4 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0004933/1.988, allocations: 245 kB / 1.845 GB, free: 285.3 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/1.989, allocations: 226.9 kB / 1.845 GB, free: 285.2 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001623/1.991, allocations: 0.7585 MB / 1.846 GB, free: 284.8 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005439/1.991, allocations: 0.9951 MB / 1.847 GB, free: 284 MB / 1.135 GB Notification: Performance of SimCode: time 1.733e-06/1.991, allocations: 0 / 1.847 GB, free: 284 MB / 1.135 GB Notification: Performance of Templates: time 0.02518/2.016, allocations: 14.16 MB / 1.861 GB, free: 276.9 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches