Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") translateModel(Buildings.Fluid.FixedResistances.Examples.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|checkValve.dp|checkValve_m_flow.dp|checkValve.m_flow|checkValveDpFix.m_flow|checkValve_m_flow.m_flow|checkValve.k|checkValveDpFix.k|checkValve_m_flow.k",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve") [: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.187/1.187, allocations: 249.4 MB / 256.7 MB, free: 7.062 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.001086/0.001086, allocations: 188.3 kB / 316 MB, free: 3.551 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.038/1.038, allocations: 205.2 MB / 0.5667 GB, free: 15.67 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.0007802/0.0007802, allocations: 80.03 kB / 0.671 GB, free: 4.812 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.101e-06/6.131e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1482, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5769/0.7252, allocations: 371.5 MB / 1.247 GB, free: 15.21 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.7254, allocations: 86.61 kB / 1.247 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.6917/1.417, allocations: 244 MB / 1.486 GB, free: 132.6 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.695e-05/1.417, allocations: 19.98 kB / 1.486 GB, free: 132.6 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001197/1.418, allocations: 0.8215 MB / 1.486 GB, free: 131.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.397e-05/1.418, allocations: 15.97 kB / 1.486 GB, free: 131.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/1.419, allocations: 71.16 kB / 1.487 GB, free: 131.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006321/1.419, allocations: 471.5 kB / 1.487 GB, free: 131.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.375e-05/1.419, allocations: 8 kB / 1.487 GB, free: 131.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.525e-05/1.419, allocations: 31.89 kB / 1.487 GB, free: 131.1 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003119/1.42, allocations: 193.2 kB / 1.487 GB, free: 130.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003214/1.42, allocations: 224.8 kB / 1.487 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/1.42, allocations: 0 / 1.487 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.462e-05/1.42, allocations: 0 / 1.487 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/1.42, allocations: 8 kB / 1.487 GB, free: 130.7 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/1.421, allocations: 1.239 MB / 1.489 GB, free: 129.3 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/1.422, allocations: 226.6 kB / 1.489 GB, free: 129.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001339/1.422, allocations: 96.84 kB / 1.489 GB, free: 129 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/1.422, allocations: 0.5025 MB / 1.489 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.282e-05/1.422, allocations: 30.56 kB / 1.489 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=25): time 1.252e-06/1.422, allocations: 0 / 1.489 GB, free: 128.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=25): time 0.0005779/1.423, allocations: 266.9 kB / 1.49 GB, free: 128.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.671e-05/1.423, allocations: 55.41 kB / 1.49 GB, free: 128 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000301/1.423, allocations: 353.2 kB / 1.49 GB, free: 127.7 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/1.423, allocations: 25.7 kB / 1.49 GB, free: 127.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.57e-05/1.423, allocations: 192.6 kB / 1.49 GB, free: 127.4 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 4.355e-05/1.423, allocations: 78.77 kB / 1.49 GB, free: 127.4 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.541e-05/1.423, allocations: 0 / 1.49 GB, free: 127.4 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 6.244e-05/1.423, allocations: 354.8 kB / 1.491 GB, free: 127 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001238/1.423, allocations: 83.92 kB / 1.491 GB, free: 126.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/1.424, allocations: 178.2 kB / 1.491 GB, free: 126.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002478/1.424, allocations: 113.6 kB / 1.491 GB, free: 126.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/1.424, allocations: 7.922 kB / 1.491 GB, free: 126.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006188/1.425, allocations: 331.2 kB / 1.491 GB, free: 126.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.658e-05/1.425, allocations: 278.8 kB / 1.492 GB, free: 126 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/1.425, allocations: 0 / 1.492 GB, free: 126 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001895/1.425, allocations: 40.83 kB / 1.492 GB, free: 125.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/1.425, allocations: 83.89 kB / 1.492 GB, free: 125.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003237/1.425, allocations: 0.5679 MB / 1.492 GB, free: 125.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/1.426, allocations: 71.8 kB / 1.492 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/1.426, allocations: 15.98 kB / 1.492 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.819e-06/1.426, allocations: 4 kB / 1.492 GB, free: 125.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004238/1.426, allocations: 222 kB / 1.493 GB, free: 124.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-06/1.426, allocations: 0 / 1.493 GB, free: 124.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.558e-06/1.426, allocations: 4.141 kB / 1.493 GB, free: 124.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003949/1.427, allocations: 87.89 kB / 1.493 GB, free: 124.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.898e-06/1.427, allocations: 15.92 kB / 1.493 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004237/1.427, allocations: 63.62 kB / 1.493 GB, free: 124.8 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.913e-05/1.427, allocations: 19.98 kB / 1.493 GB, free: 124.8 MB / 0.8698 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: checkValve_m_flow.a:VARIABLE(protected = true ) "Scaled pressure variable" type: Real 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 (34): * Single equations (assignments): 33 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.427, allocations: 108.9 kB / 1.493 GB, free: 124.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/1.428, allocations: 43.44 kB / 1.493 GB, free: 124.6 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006411/1.428, allocations: 359.1 kB / 1.493 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.835e-06/1.428, allocations: 4 kB / 1.493 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/1.428, allocations: 0 / 1.493 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/1.428, allocations: 3.984 kB / 1.493 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009441/1.429, allocations: 0.8018 MB / 1.494 GB, free: 123.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/1.429, allocations: 4 kB / 1.494 GB, free: 123.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002411/1.429, allocations: 63.8 kB / 1.494 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/1.43, allocations: 36.97 kB / 1.494 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/1.43, allocations: 7.984 kB / 1.494 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002188/1.43, allocations: 0.564 MB / 1.495 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/1.43, allocations: 0 / 1.495 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004644/1.43, allocations: 466 kB / 1.495 GB, free: 122.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/1.43, allocations: 164.4 kB / 1.495 GB, free: 122 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.258e-05/1.431, allocations: 0 / 1.495 GB, free: 122 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003895/1.431, allocations: 47.89 kB / 1.495 GB, free: 121.9 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.668e-05/1.431, allocations: 19.91 kB / 1.495 GB, free: 121.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/1.431, allocations: 15.91 kB / 1.495 GB, free: 121.9 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.000194/1.431, allocations: 274.9 kB / 1.496 GB, free: 121.6 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0007211/1.432, allocations: 263.5 kB / 1.496 GB, free: 121.4 MB / 0.8698 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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005153/1.432, allocations: 370.1 kB / 1.496 GB, free: 121 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006244/1.433, allocations: 394.1 kB / 1.497 GB, free: 120.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/1.433, allocations: 0 / 1.497 GB, free: 120.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002137/1.433, allocations: 134.1 kB / 1.497 GB, free: 120.5 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/1.434, allocations: 228.1 kB / 1.497 GB, free: 120.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001067/1.435, allocations: 0.5898 MB / 1.498 GB, free: 119.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/1.436, allocations: 0.9137 MB / 1.499 GB, free: 118.7 MB / 0.8698 GB Notification: Performance of SimCode: time 2.91e-07/1.436, allocations: 0 / 1.499 GB, free: 118.7 MB / 0.8698 GB Notification: Performance of Templates: time 0.01519/1.451, allocations: 11.35 MB / 1.51 GB, free: 107.5 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches