Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.177/1.177, allocations: 249.4 MB / 256.7 MB, free: 7.023 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.0009921/0.0009921, allocations: 192.6 kB / 316 MB, free: 3.578 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.008/1.008, allocations: 205.1 MB / 0.5667 GB, free: 15.63 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.0008198/0.0008198, allocations: 92.77 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.092e-06/6.122e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.133, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8035/0.9366, allocations: 389.4 MB / 1.265 GB, free: 321.4 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002043/0.9368, allocations: 97.97 kB / 1.265 GB, free: 321.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.3638/1.301, allocations: 228.8 MB / 1.488 GB, free: 125.9 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.958e-05/1.301, allocations: 19.94 kB / 1.488 GB, free: 125.9 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001317/1.302, allocations: 0.9773 MB / 1.489 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/1.302, allocations: 8.031 kB / 1.489 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/1.302, allocations: 82.97 kB / 1.489 GB, free: 124.7 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006625/1.303, allocations: 0.5112 MB / 1.49 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/1.303, allocations: 12 kB / 1.49 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.637e-05/1.303, allocations: 32 kB / 1.49 GB, free: 124.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005119/1.303, allocations: 357.9 kB / 1.49 GB, free: 123.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005459/1.304, allocations: 0.5022 MB / 1.491 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/1.304, allocations: 3.938 kB / 1.491 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/1.304, allocations: 7.906 kB / 1.491 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/1.304, allocations: 12 kB / 1.491 GB, free: 123.2 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002112/1.306, allocations: 3.085 MB / 1.494 GB, free: 119.9 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003432/1.307, allocations: 276.9 kB / 1.494 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/1.307, allocations: 188.8 kB / 1.494 GB, free: 119.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/1.307, allocations: 348.3 kB / 1.495 GB, free: 119.1 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.725e-05/1.307, allocations: 38.55 kB / 1.495 GB, free: 119 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=38): time 1.292e-06/1.307, allocations: 0 / 1.495 GB, free: 119 MB / 0.8698 GB Notification: Performance of matching and sorting (n=38): time 0.001893/1.309, allocations: 0.7123 MB / 1.495 GB, free: 118.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.337e-05/1.309, allocations: 55.41 kB / 1.495 GB, free: 118.2 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000344/1.309, allocations: 430.4 kB / 1.496 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.016e-05/1.309, allocations: 25.7 kB / 1.496 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.991e-05/1.309, allocations: 264.1 kB / 1.496 GB, free: 117.5 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/1.309, allocations: 122.2 kB / 1.496 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.27e-05/1.309, allocations: 4 kB / 1.496 GB, free: 117.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.433e-05/1.31, allocations: 366.7 kB / 1.497 GB, free: 117 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/1.31, allocations: 149.3 kB / 1.497 GB, free: 116.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002589/1.31, allocations: 327 kB / 1.497 GB, free: 116.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/1.311, allocations: 480.2 kB / 1.497 GB, free: 116 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/1.311, allocations: 3.938 kB / 1.497 GB, free: 116 MB / 0.8698 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001786/1.313, allocations: 0.8231 MB / 1.498 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002276/1.313, allocations: 1.744 MB / 1.5 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/1.313, allocations: 4 kB / 1.5 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003392/1.314, allocations: 104.8 kB / 1.5 GB, free: 113.2 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/1.314, allocations: 143.8 kB / 1.5 GB, free: 113 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008139/1.315, allocations: 0.7357 MB / 1.501 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/1.316, allocations: 91.39 kB / 1.501 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/1.316, allocations: 32.05 kB / 1.501 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.669e-06/1.316, allocations: 4 kB / 1.501 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001666/1.317, allocations: 0.7039 MB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/1.317, allocations: 8 kB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.271e-06/1.317, allocations: 8.562 kB / 1.502 GB, free: 111.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005693/1.318, allocations: 159.8 kB / 1.502 GB, free: 111.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/1.318, allocations: 11.92 kB / 1.502 GB, free: 111.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/1.319, allocations: 91.53 kB / 1.502 GB, free: 111.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.496e-05/1.319, allocations: 31.98 kB / 1.502 GB, free: 111.1 MB / 0.8698 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 8.929e-05/1.319, allocations: 117.5 kB / 1.502 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.455e-05/1.319, allocations: 67.23 kB / 1.502 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001911/1.321, allocations: 0.8174 MB / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/1.321, allocations: 8 kB / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/1.321, allocations: 0 / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/1.321, allocations: 3.984 kB / 1.503 GB, free: 110.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002548/1.323, allocations: 1.462 MB / 1.504 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/1.323, allocations: 3.938 kB / 1.504 GB, free: 108.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/1.324, allocations: 99.97 kB / 1.505 GB, free: 108.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/1.324, allocations: 116.8 kB / 1.505 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/1.324, allocations: 11.98 kB / 1.505 GB, free: 108.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000749/1.325, allocations: 0.7045 MB / 1.505 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/1.325, allocations: 4 kB / 1.505 GB, free: 107.6 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001721/1.326, allocations: 0.9202 MB / 1.506 GB, free: 106.7 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/1.327, allocations: 192.1 kB / 1.506 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.165e-05/1.327, allocations: 0 / 1.506 GB, free: 106.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004379/1.327, allocations: 63.81 kB / 1.507 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/1.327, allocations: 27.88 kB / 1.507 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.29e-05/1.327, allocations: 24.05 kB / 1.507 GB, free: 106.3 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0002397/1.328, allocations: 318.9 kB / 1.507 GB, free: 106 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008912/1.328, allocations: 387.3 kB / 1.507 GB, free: 105.7 MB / 0.8698 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.0005709/1.329, allocations: 425.9 kB / 1.508 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001105/1.33, allocations: 0.7193 MB / 1.508 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/1.33, allocations: 0 / 1.508 GB, free: 104.5 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003978/1.331, allocations: 244.7 kB / 1.509 GB, free: 104.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001069/1.332, allocations: 229.8 kB / 1.509 GB, free: 104.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/1.333, allocations: 0.7547 MB / 1.51 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/1.333, allocations: 0.994 MB / 1.511 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of SimCode: time 2.61e-07/1.333, allocations: 0 / 1.511 GB, free: 102.2 MB / 0.8698 GB Notification: Performance of Templates: time 0.01718/1.35, allocations: 14.18 MB / 1.524 GB, free: 88.19 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches