Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo) 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) 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_OM_adaptions_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_OM_adaptions_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 3.2.3+maint.om/package.mo): time 0.001725/0.001725, allocations: 183.1 kB / 7.461 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8981/0.8981, allocations: 205.2 MB / 213.1 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007614/0.0007614, allocations: 100.6 kB / 261.1 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.4649/0.4649, allocations: 90.35 MB / 399.4 MB, free: 12.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.651e-06/5.751e-06, allocations: 0 / 471.7 MB, free: 3.824 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1989, allocations: 66.25 MB / 0.5253 GB, free: 28.99 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.745/5.944, allocations: 4.9 GB / 5.425 GB, free: 37.66 MB / 0.5886 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000171/5.944, allocations: 80.2 kB / 5.425 GB, free: 37.62 MB / 0.5886 GB Notification: Performance of FrontEnd: time 2.274/8.217, allocations: 0.8336 GB / 6.259 GB, free: 48.82 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.8e-05/8.217, allocations: 33.06 kB / 6.259 GB, free: 48.82 MB / 0.6042 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.01145/8.229, allocations: 4.854 MB / 6.264 GB, free: 46.28 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 2.812e-05/8.229, allocations: 9.75 kB / 6.264 GB, free: 46.28 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001547/8.229, allocations: 118.8 kB / 6.264 GB, free: 46.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006736/8.23, allocations: 0.5869 MB / 6.265 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.452e-05/8.23, allocations: 26.66 kB / 6.265 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/8.23, allocations: 58.69 kB / 6.265 GB, free: 45.94 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00145/8.231, allocations: 1.444 MB / 6.266 GB, free: 45.93 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/8.233, allocations: 1.262 MB / 6.267 GB, free: 45.86 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/8.233, allocations: 7.797 kB / 6.267 GB, free: 45.86 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.158e-05/8.233, allocations: 6.188 kB / 6.267 GB, free: 45.86 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.096e-05/8.233, allocations: 88.44 kB / 6.267 GB, free: 45.85 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004109/8.237, allocations: 5.063 MB / 6.272 GB, free: 42.86 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007352/8.238, allocations: 0.7607 MB / 6.273 GB, free: 42.83 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007059/8.238, allocations: 0.7701 MB / 6.274 GB, free: 42.81 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009491/8.239, allocations: 1.504 MB / 6.275 GB, free: 41.39 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/8.239, allocations: 43.16 kB / 6.275 GB, free: 41.35 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=122): time 2.515e-06/8.239, allocations: 1.875 kB / 6.275 GB, free: 41.35 MB / 0.6042 GB Notification: Performance of matching and sorting (n=122): time 0.003504/8.243, allocations: 1.704 MB / 6.277 GB, free: 41.24 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.951e-05/8.243, allocations: 92.3 kB / 6.277 GB, free: 41.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002776/8.243, allocations: 354.7 kB / 6.277 GB, free: 41.04 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.249e-05/8.243, allocations: 32.27 kB / 6.277 GB, free: 41 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 7.148e-05/8.243, allocations: 274.3 kB / 6.278 GB, free: 40.82 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/8.244, allocations: 400.5 kB / 6.278 GB, free: 40.56 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.578e-05/8.244, allocations: 0 / 6.278 GB, free: 40.56 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 7.76e-05/8.244, allocations: 389.2 kB / 6.278 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005647/8.244, allocations: 0.5517 MB / 6.279 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/8.245, allocations: 0.61 MB / 6.28 GB, free: 40.22 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/8.247, allocations: 0.7894 MB / 6.28 GB, free: 40.21 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/8.247, allocations: 0 / 6.28 GB, free: 40.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003301/8.25, allocations: 1.714 MB / 6.282 GB, free: 40.09 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/8.25, allocations: 3.469 kB / 6.282 GB, free: 40.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/8.25, allocations: 0 / 6.282 GB, free: 40.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/8.251, allocations: 112.3 kB / 6.282 GB, free: 40.08 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006231/8.251, allocations: 193.7 kB / 6.282 GB, free: 40.08 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/8.253, allocations: 2.935 MB / 6.285 GB, free: 37.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004218/8.254, allocations: 61.22 kB / 6.285 GB, free: 37.62 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001223/8.254, allocations: 103.8 kB / 6.285 GB, free: 37.62 MB / 0.6042 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.0001422/8.254, allocations: 115.4 kB / 6.285 GB, free: 37.52 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001387/8.254, allocations: 85.94 kB / 6.286 GB, free: 37.47 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005059/8.259, allocations: 2.31 MB / 6.288 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-05/8.259, allocations: 22.69 kB / 6.288 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.76e-06/8.259, allocations: 1.969 kB / 6.288 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/8.259, allocations: 9.797 kB / 6.288 GB, free: 37.32 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004957/8.264, allocations: 3.285 MB / 6.291 GB, free: 36.88 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/8.264, allocations: 11.62 kB / 6.291 GB, free: 36.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006153/8.265, allocations: 194.6 kB / 6.291 GB, free: 36.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002915/8.265, allocations: 116.8 kB / 6.291 GB, free: 36.86 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.605e-05/8.265, allocations: 48.09 kB / 6.291 GB, free: 36.86 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/8.267, allocations: 2.929 MB / 6.294 GB, free: 34.45 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/8.267, allocations: 3.5 kB / 6.294 GB, free: 34.45 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00423/8.271, allocations: 2.881 MB / 6.297 GB, free: 34.08 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 9.707e-05/8.271, allocations: 164.3 kB / 6.297 GB, free: 33.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001369/8.271, allocations: 6.781 kB / 6.297 GB, free: 33.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004672/8.272, allocations: 35.88 kB / 6.297 GB, free: 33.92 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/8.272, allocations: 91.69 kB / 6.297 GB, free: 33.91 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001124/8.272, allocations: 98.94 kB / 6.297 GB, free: 33.91 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.000192/8.272, allocations: 278.3 kB / 6.298 GB, free: 33.82 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.003141/8.275, allocations: 1.613 MB / 6.299 GB, free: 33.43 MB / 0.6042 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.004327/8.28, allocations: 3.461 MB / 6.303 GB, free: 32.71 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.002298/8.282, allocations: 1.971 MB / 6.305 GB, free: 32.43 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/8.282, allocations: 0 / 6.305 GB, free: 32.43 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001347/8.283, allocations: 1.241 MB / 6.306 GB, free: 32.16 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001134/8.285, allocations: 284.2 kB / 6.306 GB, free: 32.14 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002345/8.287, allocations: 1.618 MB / 6.308 GB, free: 31.77 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001205/8.288, allocations: 1.293 MB / 6.309 GB, free: 31.06 MB / 0.6042 GB Notification: Performance of SimCode: time 2.7e-07/8.288, allocations: 0 / 6.309 GB, free: 31.06 MB / 0.6042 GB Notification: Performance of Templates: time 0.05045/8.339, allocations: 47.77 MB / 6.356 GB, free: 17.05 MB / 0.6042 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Processes.Tests.Nozzle_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Processes.Tests.Nozzle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches