Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.942/1.942, allocations: 387.2 MB / 394.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 180.2 kB / 487 MB, free: 0.7188 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 221.4 MB / 0.7819 GB, free: 6.777 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009399, allocations: 94.52 kB / 0.9213 GB, free: 43.73 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 9.688e-06/9.718e-06, allocations: 4 kB / 1.066 GB, free: 7.609 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.798/0.798, allocations: 142.3 MB / 1.205 GB, free: 72.76 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9485/1.747, allocations: 389.8 MB / 1.586 GB, free: 223 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/1.747, allocations: 81.86 kB / 1.586 GB, free: 223 MB / 1.01 GB Notification: Performance of FrontEnd: time 0.4574/2.204, allocations: 256 MB / 1.836 GB, free: 14.61 MB / 1.042 GB Notification: Performance of Transformations before backend: time 5.8e-05/2.204, allocations: 19.92 kB / 1.836 GB, free: 14.59 MB / 1.042 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.001614/2.206, allocations: 0.837 MB / 1.837 GB, free: 13.71 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/2.206, allocations: 12.03 kB / 1.837 GB, free: 13.7 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/2.206, allocations: 63.25 kB / 1.837 GB, free: 13.64 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007955/2.207, allocations: 467.5 kB / 1.837 GB, free: 13.14 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/2.207, allocations: 16 kB / 1.837 GB, free: 13.12 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/2.207, allocations: 24 kB / 1.837 GB, free: 13.1 MB / 1.042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000382/2.208, allocations: 189.3 kB / 1.838 GB, free: 12.91 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003921/2.208, allocations: 224.8 kB / 1.838 GB, free: 12.69 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/2.208, allocations: 0 / 1.838 GB, free: 12.69 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.797e-05/2.208, allocations: 0 / 1.838 GB, free: 12.69 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/2.208, allocations: 8 kB / 1.838 GB, free: 12.68 MB / 1.042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001624/2.21, allocations: 1.251 MB / 1.839 GB, free: 11.33 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/2.21, allocations: 230.5 kB / 1.839 GB, free: 11.1 MB / 1.042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002491/2.21, allocations: 100.8 kB / 1.839 GB, free: 11 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004258/2.211, allocations: 0.4986 MB / 1.84 GB, free: 10.39 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/2.211, allocations: 30.56 kB / 1.84 GB, free: 10.35 MB / 1.042 GB Notification: Performance of pre-optimization done (n=25): time 1.693e-06/2.211, allocations: 4.219 kB / 1.84 GB, free: 10.34 MB / 1.042 GB Notification: Performance of matching and sorting (n=25): time 0.0007108/2.212, allocations: 271.9 kB / 1.84 GB, free: 10.07 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.097e-05/2.212, allocations: 59.44 kB / 1.84 GB, free: 10 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003686/2.212, allocations: 353.2 kB / 1.84 GB, free: 9.648 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 3.522e-05/2.212, allocations: 29.64 kB / 1.84 GB, free: 9.613 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/2.212, allocations: 188.6 kB / 1.841 GB, free: 9.422 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 6.729e-05/2.212, allocations: 82.75 kB / 1.841 GB, free: 9.34 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/2.212, allocations: 0 / 1.841 GB, free: 9.34 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0001311/2.212, allocations: 358.8 kB / 1.841 GB, free: 8.98 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/2.213, allocations: 79.98 kB / 1.841 GB, free: 8.902 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002182/2.213, allocations: 174 kB / 1.841 GB, free: 8.691 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002878/2.213, allocations: 120.8 kB / 1.841 GB, free: 8.574 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/2.213, allocations: 0 / 1.841 GB, free: 8.574 MB / 1.042 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007306/2.214, allocations: 340.4 kB / 1.842 GB, free: 8.234 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/2.214, allocations: 271 kB / 1.842 GB, free: 7.949 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/2.214, allocations: 0 / 1.842 GB, free: 7.949 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002215/2.214, allocations: 40.83 kB / 1.842 GB, free: 7.906 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003849/2.215, allocations: 83.89 kB / 1.842 GB, free: 7.824 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004378/2.215, allocations: 0.564 MB / 1.843 GB, free: 7.234 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005255/2.216, allocations: 67.75 kB / 1.843 GB, free: 7.168 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.74e-05/2.216, allocations: 15.98 kB / 1.843 GB, free: 7.152 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 6.994e-06/2.216, allocations: 4 kB / 1.843 GB, free: 7.148 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005798/2.216, allocations: 222.8 kB / 1.843 GB, free: 6.934 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-06/2.216, allocations: 0 / 1.843 GB, free: 6.934 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.762e-06/2.216, allocations: 7.906 kB / 1.843 GB, free: 6.926 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004283/2.217, allocations: 87.88 kB / 1.843 GB, free: 6.84 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.867e-06/2.217, allocations: 4 kB / 1.843 GB, free: 6.836 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004497/2.217, allocations: 59.78 kB / 1.843 GB, free: 6.777 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/2.217, allocations: 19.98 kB / 1.843 GB, free: 6.758 MB / 1.042 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.000146/2.217, allocations: 123.5 kB / 1.843 GB, free: 6.633 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.437e-05/2.217, allocations: 47.48 kB / 1.843 GB, free: 6.586 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007646/2.218, allocations: 367.1 kB / 1.844 GB, free: 6.215 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.475e-06/2.218, allocations: 4 kB / 1.844 GB, free: 6.211 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/2.218, allocations: 3.906 kB / 1.844 GB, free: 6.207 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/2.218, allocations: 0 / 1.844 GB, free: 6.207 MB / 1.042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001229/2.219, allocations: 0.8054 MB / 1.844 GB, free: 5.344 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/2.219, allocations: 8.125 kB / 1.844 GB, free: 5.336 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002577/2.22, allocations: 51.97 kB / 1.845 GB, free: 5.285 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001419/2.22, allocations: 36.83 kB / 1.845 GB, free: 5.246 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/2.22, allocations: 7.938 kB / 1.845 GB, free: 5.238 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003341/2.22, allocations: 0.5679 MB / 1.845 GB, free: 4.645 MB / 1.042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/2.22, allocations: 0 / 1.845 GB, free: 4.645 MB / 1.042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005977/2.221, allocations: 471.5 kB / 1.846 GB, free: 4.129 MB / 1.042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/2.221, allocations: 156.4 kB / 1.846 GB, free: 3.957 MB / 1.042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.022e-05/2.221, allocations: 3.984 kB / 1.846 GB, free: 3.953 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004117/2.222, allocations: 51.86 kB / 1.846 GB, free: 3.902 MB / 1.042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/2.222, allocations: 15.97 kB / 1.846 GB, free: 3.887 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/2.222, allocations: 12 kB / 1.846 GB, free: 3.875 MB / 1.042 GB Notification: Performance of sort global known variables: time 0.0002652/2.222, allocations: 271 kB / 1.846 GB, free: 3.613 MB / 1.042 GB Notification: Performance of remove unused functions: time 0.0008416/2.223, allocations: 267.4 kB / 1.846 GB, free: 3.352 MB / 1.042 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.0007647/2.224, allocations: 351.7 kB / 1.847 GB, free: 3 MB / 1.042 GB Notification: Performance of simCode: created initialization part: time 0.000755/2.224, allocations: 394.2 kB / 1.847 GB, free: 2.613 MB / 1.042 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/2.224, allocations: 4 kB / 1.847 GB, free: 2.609 MB / 1.042 GB Notification: Performance of simCode: created simulation system equations: time 0.000246/2.225, allocations: 131.7 kB / 1.847 GB, free: 2.48 MB / 1.042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/2.226, allocations: 239 kB / 1.847 GB, free: 2.254 MB / 1.042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/2.227, allocations: 0.5938 MB / 1.848 GB, free: 1.621 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004728/2.227, allocations: 0.9098 MB / 1.849 GB, free: 0.6836 MB / 1.042 GB Notification: Performance of SimCode: time 3.41e-07/2.227, allocations: 4 kB / 1.849 GB, free: 0.6797 MB / 1.042 GB Notification: Performance of Templates: time 0.01897/2.246, allocations: 11.35 MB / 1.86 GB, free: 5.48 MB / 1.057 GB make -j1 -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.makefile (rm -f Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; mkfifo Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe >> ../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.sim & ./Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_FixedResistances_Examples_CheckValve.csv","../files/Buildings_9_Buildings.Fluid.FixedResistances.Examples.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches