Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo) Using package ObsoleteModelica4 with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo) 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) Running command: translateModel(ThermofluidStream.Processes.Tests.Nozzle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|nozzle.inlet.m_flow|nozzle1.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle") translateModel(ThermofluidStream.Processes.Tests.Nozzle,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|nozzle.inlet.m_flow|nozzle1.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle") [: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/Complex 4.0.0+maint.om/package.mo): time 0.002008/0.002008, allocations: 174.2 kB / 7.458 MB, free: 2.488 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.019/1.019, allocations: 221.4 MB / 229.3 MB, free: 3.078 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007898/0.0007898, allocations: 98.19 kB / 280.1 MB, free: 1.328 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ObsoleteModelica4 4.0.0+maint.om/package.mo): time 0.006944/0.006945, allocations: 1.577 MB / 332.5 MB, free: 12.96 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.0.0-main/package.mo): time 0.3846/0.3846, allocations: 90.03 MB / 473.6 MB, free: 7.293 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 4.719e-06/4.739e-06, allocations: 0 / 0.5369 GB, free: 14.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0979/0.09792, allocations: 69.35 MB / 0.6046 GB, free: 8.891 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.606/5.704, allocations: 4.586 GB / 5.19 GB, free: 49.21 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001772/5.704, allocations: 77.95 kB / 5.19 GB, free: 49.18 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.309/8.013, allocations: 0.7735 GB / 5.964 GB, free: 51.52 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.022e-05/8.014, allocations: 32.08 kB / 5.964 GB, free: 51.52 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.01237/8.026, allocations: 4.47 MB / 5.968 GB, free: 49.87 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 2.936e-05/8.026, allocations: 11.75 kB / 5.968 GB, free: 49.87 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/8.026, allocations: 121.5 kB / 5.968 GB, free: 49.81 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007461/8.027, allocations: 0.5887 MB / 5.969 GB, free: 49.57 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.788e-05/8.027, allocations: 30.16 kB / 5.969 GB, free: 49.57 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/8.027, allocations: 58.91 kB / 5.969 GB, free: 49.57 MB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001464/8.028, allocations: 1.429 MB / 5.97 GB, free: 49.57 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/8.03, allocations: 1.23 MB / 5.972 GB, free: 49.5 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/8.03, allocations: 1.594 kB / 5.972 GB, free: 49.5 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.747e-05/8.03, allocations: 0 / 5.972 GB, free: 49.5 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.757e-05/8.03, allocations: 95.81 kB / 5.972 GB, free: 49.5 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004219/8.034, allocations: 5.046 MB / 5.977 GB, free: 46.55 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/8.035, allocations: 0.7413 MB / 5.977 GB, free: 46.52 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007069/8.036, allocations: 0.7589 MB / 5.978 GB, free: 46.5 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008901/8.037, allocations: 1.436 MB / 5.979 GB, free: 45 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.052e-05/8.037, allocations: 51.03 kB / 5.98 GB, free: 44.96 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=122): time 3.055e-06/8.037, allocations: 1.406 kB / 5.98 GB, free: 44.96 MB / 0.6198 GB Notification: Performance of matching and sorting (n=122): time 0.003455/8.04, allocations: 1.622 MB / 5.981 GB, free: 44.85 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/8.04, allocations: 96.5 kB / 5.981 GB, free: 44.75 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002763/8.04, allocations: 344.7 kB / 5.982 GB, free: 44.64 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.156e-05/8.041, allocations: 32.61 kB / 5.982 GB, free: 44.61 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.264e-05/8.041, allocations: 287.9 kB / 5.982 GB, free: 44.43 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/8.041, allocations: 395.4 kB / 5.982 GB, free: 44.17 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.176e-05/8.041, allocations: 1.781 kB / 5.982 GB, free: 44.17 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.049e-05/8.041, allocations: 391.6 kB / 5.983 GB, free: 43.86 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005781/8.042, allocations: 0.5399 MB / 5.983 GB, free: 43.86 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006088/8.042, allocations: 0.5993 MB / 5.984 GB, free: 43.83 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/8.044, allocations: 0.7321 MB / 5.984 GB, free: 43.82 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/8.044, allocations: 2.688 kB / 5.984 GB, free: 43.82 MB / 0.6198 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003225/8.047, allocations: 1.633 MB / 5.986 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.097e-05/8.048, allocations: 10.34 kB / 5.986 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/8.048, allocations: 3.094 kB / 5.986 GB, free: 43.71 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/8.048, allocations: 113.8 kB / 5.986 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006264/8.049, allocations: 171.3 kB / 5.986 GB, free: 43.69 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001815/8.05, allocations: 2.939 MB / 5.989 GB, free: 41.27 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004508/8.051, allocations: 60.64 kB / 5.989 GB, free: 41.23 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/8.051, allocations: 70 kB / 5.989 GB, free: 41.23 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 96 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001393/8.051, allocations: 117.7 kB / 5.989 GB, free: 41.12 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/8.051, allocations: 78.31 kB / 5.989 GB, free: 41.08 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004635/8.056, allocations: 2.597 MB / 5.992 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.735e-05/8.056, allocations: 24.91 kB / 5.992 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/8.056, allocations: 0 / 5.992 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/8.056, allocations: 7.141 kB / 5.992 GB, free: 40.99 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004967/8.061, allocations: 3.186 MB / 5.995 GB, free: 40.55 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/8.061, allocations: 0 / 5.995 GB, free: 40.55 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006149/8.062, allocations: 181.7 kB / 5.995 GB, free: 40.55 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003198/8.062, allocations: 120.1 kB / 5.995 GB, free: 40.53 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.932e-05/8.062, allocations: 40.55 kB / 5.995 GB, free: 40.53 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/8.064, allocations: 2.931 MB / 5.998 GB, free: 38.11 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/8.064, allocations: 6.156 kB / 5.998 GB, free: 38.11 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004121/8.068, allocations: 2.791 MB / 6.001 GB, free: 37.75 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001017/8.068, allocations: 168.2 kB / 6.001 GB, free: 37.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/8.068, allocations: 4.938 kB / 6.001 GB, free: 37.59 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/8.069, allocations: 36.48 kB / 6.001 GB, free: 37.58 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001162/8.069, allocations: 75.56 kB / 6.001 GB, free: 37.57 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.67e-05/8.069, allocations: 75.02 kB / 6.001 GB, free: 37.57 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.0001993/8.069, allocations: 275.1 kB / 6.002 GB, free: 37.48 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.002662/8.072, allocations: 1.224 MB / 6.003 GB, free: 37.21 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (sink1.inlet.m_flow,sink.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 98 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003549/8.075, allocations: 2.768 MB / 6.006 GB, free: 36.66 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.00208/8.077, allocations: 1.935 MB / 6.007 GB, free: 36.38 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/8.077, allocations: 0 / 6.007 GB, free: 36.38 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.001352/8.079, allocations: 1.232 MB / 6.009 GB, free: 36.12 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/8.08, allocations: 266.9 kB / 6.009 GB, free: 36.11 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002402/8.082, allocations: 1.6 MB / 6.01 GB, free: 35.75 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000691/8.083, allocations: 1.199 MB / 6.012 GB, free: 35.04 MB / 0.6198 GB Notification: Performance of SimCode: time 2.6e-07/8.083, allocations: 3.594 kB / 6.012 GB, free: 35.04 MB / 0.6198 GB Notification: Performance of Templates: time 0.04423/8.127, allocations: 41.39 MB / 6.052 GB, free: 34.14 MB / 0.6198 GB make -j1 -f ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.makefile (rm -f ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.pipe >> ../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.sim & ./ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Processes.Tests.Nozzle_ref.mat","../files/ThermofluidStream_ThermofluidStream.Processes.Tests.Nozzle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches