Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001303/0.001303, allocations: 80.81 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 173 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9907/0.9907, allocations: 177.1 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.6384/0.6384, allocations: 118.6 MB / 378.9 MB, free: 1.32 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.274e-06/2.274e-06, allocations: 3.984 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.678e-05, allocations: 2.312 kB / 430.8 MB, free: 13.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.2816/0.2817, allocations: 128.6 MB / 0.5463 GB, free: 10.74 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.0008808/0.2825, allocations: 0.7502 MB / 0.547 GB, free: 9.996 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.2827, allocations: 23.81 kB / 0.547 GB, free: 9.973 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.283, allocations: 67.41 kB / 0.5471 GB, free: 9.906 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.000279/0.2833, allocations: 149 kB / 0.5472 GB, free: 9.762 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.000242/0.2835, allocations: 129.6 kB / 0.5474 GB, free: 9.637 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0003115/0.2838, allocations: 358.9 kB / 0.5477 GB, free: 9.285 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.2839, allocations: 52.52 kB / 0.5478 GB, free: 9.234 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003567/0.2843, allocations: 235.2 kB / 0.548 GB, free: 9.004 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2844, allocations: 107.7 kB / 0.5481 GB, free: 8.898 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.06e-05/0.2844, allocations: 12 kB / 0.5481 GB, free: 8.887 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.2846, allocations: 111.6 kB / 0.5482 GB, free: 8.777 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 4.704e-05/0.2846, allocations: 39.78 kB / 0.5482 GB, free: 8.738 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 5.448e-05/0.2847, allocations: 67.83 kB / 0.5483 GB, free: 8.672 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.2849, allocations: 251 kB / 0.5485 GB, free: 8.426 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.2849, allocations: 0 / 0.5485 GB, free: 8.426 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.142e-06/0.2849, allocations: 4 kB / 0.5485 GB, free: 8.422 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.2849, allocations: 0 / 0.5485 GB, free: 8.422 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0004988/0.2854, allocations: 0.4998 MB / 0.549 GB, free: 7.898 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 2.476e-05/0.2855, allocations: 8.031 kB / 0.549 GB, free: 7.891 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.767e-05/0.2855, allocations: 32.91 kB / 0.5491 GB, free: 7.859 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.2858, allocations: 275 kB / 0.5493 GB, free: 7.562 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2858, allocations: 12.38 kB / 0.5494 GB, free: 7.551 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.649e-05/0.2858, allocations: 20.36 kB / 0.5494 GB, free: 7.531 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.286, allocations: 141.7 kB / 0.5495 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.286, allocations: 0 / 0.5495 GB, free: 7.371 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.286, allocations: 15.92 kB / 0.5495 GB, free: 7.355 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.286, allocations: 0 / 0.5495 GB, free: 7.355 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.222e-05/0.286, allocations: 37.19 kB / 0.5496 GB, free: 7.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004893/0.2865, allocations: 0.62 MB / 0.5502 GB, free: 6.66 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 7.35e-05/0.2866, allocations: 42.56 kB / 0.5502 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.995e-05/0.2866, allocations: 16.8 kB / 0.5502 GB, free: 6.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.821e-05/0.2866, allocations: 11.94 kB / 0.5502 GB, free: 6.578 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.342e-05/0.2867, allocations: 71.47 kB / 0.5503 GB, free: 6.496 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=7): time 8.61e-07/0.2867, allocations: 0 / 0.5503 GB, free: 6.496 MB / 0.4948 GB Notification: Performance of matching and sorting (n=7): time 9.606e-05/0.2868, allocations: 66.22 kB / 0.5504 GB, free: 6.426 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.2869, allocations: 55.34 kB / 0.5504 GB, free: 6.359 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.287, allocations: 278.8 kB / 0.5507 GB, free: 6.074 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.287, allocations: 25.7 kB / 0.5507 GB, free: 6.043 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.684e-05/0.2871, allocations: 148.4 kB / 0.5508 GB, free: 5.895 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.2871, allocations: 27.84 kB / 0.5509 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.2871, allocations: 41.58 kB / 0.5509 GB, free: 5.82 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 7.396e-05/0.2872, allocations: 342.7 kB / 0.5512 GB, free: 5.477 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.751e-05/0.2872, allocations: 37.7 kB / 0.5513 GB, free: 5.434 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.392e-05/0.2873, allocations: 79.77 kB / 0.5514 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.714e-05/0.2873, allocations: 102.8 kB / 0.5514 GB, free: 5.207 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2873, allocations: 4 kB / 0.5515 GB, free: 5.203 MB / 0.4948 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001115/0.2874, allocations: 160.9 kB / 0.5516 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.2875, allocations: 33.69 kB / 0.5516 GB, free: 4.988 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.2875, allocations: 7.938 kB / 0.5516 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.514e-06/0.2875, allocations: 0 / 0.5516 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.2876, allocations: 27.98 kB / 0.5517 GB, free: 4.953 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.634e-06/0.2876, allocations: 4 kB / 0.5517 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.361e-05/0.2876, allocations: 20.66 kB / 0.5517 GB, free: 4.93 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.283e-06/0.2876, allocations: 8.547 kB / 0.5517 GB, free: 4.922 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.565e-05/0.2877, allocations: 128.5 kB / 0.5518 GB, free: 4.785 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.636e-05/0.2877, allocations: 15.98 kB / 0.5518 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.96e-05/0.2878, allocations: 76.91 kB / 0.5519 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-06/0.2878, allocations: 0 / 0.5519 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.32e-07/0.2878, allocations: 0 / 0.5519 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2878, allocations: 9.547 kB / 0.5519 GB, free: 4.68 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.937e-05/0.2879, allocations: 113.8 kB / 0.552 GB, free: 4.551 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2879, allocations: 0 / 0.552 GB, free: 4.551 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.384e-05/0.2879, allocations: 23.92 kB / 0.5521 GB, free: 4.527 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.01e-07/0.2879, allocations: 4 kB / 0.5521 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.561e-06/0.2879, allocations: 0 / 0.5521 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2879, allocations: 2.344 kB / 0.5521 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.2879, allocations: 7.984 kB / 0.5521 GB, free: 4.516 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.96e-05/0.288, allocations: 101 kB / 0.5522 GB, free: 4.398 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.452e-05/0.2881, allocations: 23.81 kB / 0.5522 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.446e-05/0.2881, allocations: 0 / 0.5522 GB, free: 4.375 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.243e-05/0.2881, allocations: 13.8 kB / 0.5522 GB, free: 4.363 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.166e-05/0.2881, allocations: 11.98 kB / 0.5522 GB, free: 4.352 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.2882, allocations: 3.984 kB / 0.5522 GB, free: 4.348 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 5.95e-05/0.2882, allocations: 96.66 kB / 0.5523 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5e-08/0.2882, allocations: 0 / 0.5523 GB, free: 4.254 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0001367/0.2883, allocations: 51.88 kB / 0.5524 GB, free: 4.203 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (terminalSource.p) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001122/0.2885, allocations: 89.05 kB / 0.5524 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001149/0.2886, allocations: 138.4 kB / 0.5526 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2886, allocations: 320 / 0.5526 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 2.803e-05/0.2886, allocations: 24.86 kB / 0.5526 GB, free: 3.922 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001739/0.2888, allocations: 67.36 kB / 0.5527 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006964/0.2895, allocations: 459.6 kB / 0.5531 GB, free: 3.391 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.786e-05/0.2895, allocations: 76.33 kB / 0.5532 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 6.199e-05/0.2896, allocations: 33.86 kB / 0.5532 GB, free: 3.262 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.746e-05/0.2897, allocations: 95.34 kB / 0.5533 GB, free: 3.168 MB / 0.4948 GB Notification: Performance of SimCode: time 5.31e-07/0.2897, allocations: 0 / 0.5533 GB, free: 3.168 MB / 0.4948 GB Notification: Performance of Templates: time 0.004376/0.2941, allocations: 2.765 MB / 0.556 GB, free: 0.5 MB / 0.4948 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.4469645149074495]