Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json 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/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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") translateModel(ThermofluidStream.Boundaries.Tests.TerminalSourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|terminalSource.p",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 100.5 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.585/1.585, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.8626/0.8626, allocations: 89.6 MB / 380.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004081/0.0004082, allocations: 14.19 kB / 459.9 MB, free: 24.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1626, allocations: 68.82 MB / 0.5163 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.5072/0.6698, allocations: 119.1 MB / 0.6326 GB, free: 10.34 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.002115/0.672, allocations: 1.765 MB / 0.6343 GB, free: 8.938 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.6722, allocations: 5.594 kB / 0.6343 GB, free: 8.934 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004413/0.6726, allocations: 95.62 kB / 0.6344 GB, free: 8.855 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.6729, allocations: 129.4 kB / 0.6345 GB, free: 8.746 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003701/0.6733, allocations: 129.8 kB / 0.6347 GB, free: 8.645 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.6736, allocations: 166.5 kB / 0.6348 GB, free: 8.543 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001616/0.6737, allocations: 53.14 kB / 0.6349 GB, free: 8.516 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003772/0.6741, allocations: 138.3 kB / 0.635 GB, free: 8.426 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001428/0.6743, allocations: 84.53 kB / 0.6351 GB, free: 8.379 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.6743, allocations: 6.469 kB / 0.6351 GB, free: 8.379 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003585/0.6747, allocations: 181.7 kB / 0.6353 GB, free: 8.309 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 3.86e-05/0.6747, allocations: 21.25 kB / 0.6353 GB, free: 8.293 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 5.819e-05/0.6748, allocations: 54.89 kB / 0.6353 GB, free: 8.246 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.675, allocations: 146.4 kB / 0.6355 GB, free: 8.16 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.675, allocations: 0 / 0.6355 GB, free: 8.16 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.675, allocations: 2.469 kB / 0.6355 GB, free: 8.16 MB / 462.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.675, allocations: 0 / 0.6355 GB, free: 8.16 MB / 462.1 MB 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.0008663/0.6759, allocations: 497.5 kB / 0.6359 GB, free: 7.684 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.676, allocations: 7.438 kB / 0.636 GB, free: 7.684 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.338e-05/0.676, allocations: 25.75 kB / 0.636 GB, free: 7.668 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.6763, allocations: 207.1 kB / 0.6362 GB, free: 7.441 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.6763, allocations: 13.39 kB / 0.6362 GB, free: 7.434 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.6763, allocations: 12.5 kB / 0.6362 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003497/0.6767, allocations: 171.7 kB / 0.6364 GB, free: 7.301 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.6767, allocations: 4 kB / 0.6364 GB, free: 7.297 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.6767, allocations: 9.453 kB / 0.6364 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.6768, allocations: 3.562 kB / 0.6364 GB, free: 7.289 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00031/0.6771, allocations: 100.6 kB / 0.6365 GB, free: 7.25 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.6781, allocations: 0.9044 MB / 0.6374 GB, free: 6.348 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003022/0.6785, allocations: 95.05 kB / 0.6375 GB, free: 6.293 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.989e-05/0.6786, allocations: 88.62 kB / 0.6375 GB, free: 6.191 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000254/0.6788, allocations: 95.59 kB / 0.6376 GB, free: 6.113 MB / 462.1 MB Notification: Performance of pre-optimization done (n=7): time 1.824e-06/0.6788, allocations: 1.062 kB / 0.6376 GB, free: 6.113 MB / 462.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005297/0.6794, allocations: 162 kB / 0.6378 GB, free: 6.027 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.6794, allocations: 53.03 kB / 0.6378 GB, free: 5.965 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/0.6796, allocations: 203.5 kB / 0.638 GB, free: 5.805 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.6796, allocations: 32.52 kB / 0.6381 GB, free: 5.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.031e-05/0.6797, allocations: 143 kB / 0.6382 GB, free: 5.633 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.6798, allocations: 33.34 kB / 0.6382 GB, free: 5.605 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.01e-05/0.6798, allocations: 4 kB / 0.6382 GB, free: 5.602 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.6799, allocations: 321.4 kB / 0.6385 GB, free: 5.281 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001464/0.6801, allocations: 52.16 kB / 0.6386 GB, free: 5.258 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001607/0.6802, allocations: 90.48 kB / 0.6387 GB, free: 5.184 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.6804, allocations: 83 kB / 0.6388 GB, free: 5.125 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.6804, allocations: 0 / 0.6388 GB, free: 5.125 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004243/0.6808, allocations: 216 kB / 0.639 GB, free: 4.992 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.902e-05/0.6809, allocations: 33.05 kB / 0.639 GB, free: 4.961 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.6809, allocations: 9.969 kB / 0.639 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.6809, allocations: 2.812 kB / 0.639 GB, free: 4.953 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001732/0.6811, allocations: 36.17 kB / 0.639 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.6811, allocations: 2.188 kB / 0.639 GB, free: 4.941 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.6813, allocations: 23.86 kB / 0.6391 GB, free: 4.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.6813, allocations: 5.75 kB / 0.6391 GB, free: 4.93 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001188/0.6814, allocations: 134.5 kB / 0.6392 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.609e-05/0.6815, allocations: 22.55 kB / 0.6392 GB, free: 4.781 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003522/0.6818, allocations: 128.2 kB / 0.6393 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.6819, allocations: 0 / 0.6393 GB, free: 4.707 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.6819, allocations: 6.875 kB / 0.6393 GB, free: 4.703 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.6819, allocations: 0 / 0.6393 GB, free: 4.703 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001964/0.6821, allocations: 219.8 kB / 0.6396 GB, free: 4.465 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.6821, allocations: 1.375 kB / 0.6396 GB, free: 4.465 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.6822, allocations: 19.23 kB / 0.6396 GB, free: 4.461 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.6822, allocations: 0 / 0.6396 GB, free: 4.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.6822, allocations: 6.391 kB / 0.6396 GB, free: 4.457 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.6822, allocations: 0 / 0.6396 GB, free: 4.457 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6822, allocations: 3.984 kB / 0.6396 GB, free: 4.453 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004492/0.6827, allocations: 206.6 kB / 0.6398 GB, free: 4.316 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.933e-05/0.6828, allocations: 93.64 kB / 0.6399 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.6828, allocations: 0 / 0.6399 GB, free: 4.211 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.6829, allocations: 17.44 kB / 0.6399 GB, free: 4.203 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.642e-05/0.683, allocations: 19.23 kB / 0.6399 GB, free: 4.191 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.438e-06/0.683, allocations: 3.984 kB / 0.6399 GB, free: 4.188 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.6831, allocations: 147.2 kB / 0.6401 GB, free: 4.078 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6831, allocations: 0 / 0.6401 GB, free: 4.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.6834, allocations: 37.38 kB / 0.6401 GB, free: 4.074 MB / 462.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001881/0.6836, allocations: 136.9 kB / 0.6402 GB, free: 3.961 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0003856/0.684, allocations: 177.6 kB / 0.6404 GB, free: 3.844 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.684, allocations: 0 / 0.6404 GB, free: 3.844 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.6841, allocations: 45.06 kB / 0.6404 GB, free: 3.828 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.6845, allocations: 37.44 kB / 0.6405 GB, free: 3.809 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007291/0.6852, allocations: 449.7 kB / 0.6409 GB, free: 3.457 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.6855, allocations: 0.7209 MB / 0.6416 GB, free: 2.738 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 7.485e-05/0.6855, allocations: 13.34 kB / 0.6416 GB, free: 2.73 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.6856, allocations: 21.05 kB / 0.6416 GB, free: 2.715 MB / 462.1 MB Notification: Performance of SimCode: time 3.21e-07/0.6856, allocations: 1.656 kB / 0.6416 GB, free: 2.715 MB / 462.1 MB Notification: Performance of Templates: time 0.005611/0.6912, allocations: 2.13 MB / 0.6437 GB, free: 1.637 MB / 462.1 MB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches