Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo", uses=false) Using package ThermofluidStream with version 0.4.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 178.5 kB / 15.43 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.209/1.209, allocations: 225.7 MB / 241.9 MB, free: 396 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007766/0.0007768, allocations: 91.42 kB / 293.1 MB, free: 12.9 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.1-main/package.mo): time 0.6272/0.6272, allocations: 91.64 MB / 435.8 MB, free: 23.57 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002765/0.0002765, allocations: 8 kB / 0.5038 GB, free: 8.309 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2864/0.2867, allocations: 69.28 MB / 0.5714 GB, free: 45.54 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1189/0.4056, allocations: 129.1 MB / 0.6975 GB, free: 9.469 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002264/0.4079, allocations: 2.455 MB / 0.6999 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.4081, allocations: 0 / 0.6999 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003927/0.4085, allocations: 95.5 kB / 0.7 GB, free: 6.805 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.000259/0.4087, allocations: 119.3 kB / 0.7001 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003591/0.4091, allocations: 159.5 kB / 0.7003 GB, free: 6.531 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.000285/0.4094, allocations: 318.7 kB / 0.7006 GB, free: 6.219 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.4095, allocations: 45.64 kB / 0.7006 GB, free: 6.176 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003332/0.4099, allocations: 159.3 kB / 0.7008 GB, free: 6.02 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.41, allocations: 115.5 kB / 0.7009 GB, free: 5.906 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.4101, allocations: 4 kB / 0.7009 GB, free: 5.902 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003908/0.4105, allocations: 255.4 kB / 0.7012 GB, free: 5.652 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 3.262e-05/0.4105, allocations: 19.86 kB / 0.7012 GB, free: 5.633 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.085e-05/0.4106, allocations: 97.31 kB / 0.7013 GB, free: 5.531 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.411, allocations: 261.2 kB / 0.7015 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.411, allocations: 0 / 0.7015 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.302e-06/0.411, allocations: 0 / 0.7015 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.411, allocations: 0 / 0.7015 GB, free: 5.277 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.0007715/0.4118, allocations: 0.4986 MB / 0.702 GB, free: 4.723 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.163e-05/0.4118, allocations: 11.98 kB / 0.702 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.4118, allocations: 16.75 kB / 0.702 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002118/0.4121, allocations: 228.4 kB / 0.7022 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.4121, allocations: 12.61 kB / 0.7023 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.242e-05/0.4121, allocations: 16.36 kB / 0.7023 GB, free: 4.406 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003233/0.4125, allocations: 162.8 kB / 0.7024 GB, free: 4.238 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.4125, allocations: 4 kB / 0.7024 GB, free: 4.234 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.482e-05/0.4125, allocations: 4 kB / 0.7024 GB, free: 4.23 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.788e-06/0.4125, allocations: 7.984 kB / 0.7024 GB, free: 4.223 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.4128, allocations: 111.8 kB / 0.7025 GB, free: 4.113 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000892/0.4137, allocations: 0.7844 MB / 0.7033 GB, free: 3.227 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.414, allocations: 110.5 kB / 0.7034 GB, free: 3.109 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4142, allocations: 56.83 kB / 0.7035 GB, free: 3.051 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 8.673e-05/0.4143, allocations: 89.05 kB / 0.7036 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002517/0.4145, allocations: 107.3 kB / 0.7037 GB, free: 2.828 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=9): time 1.633e-06/0.4145, allocations: 4 kB / 0.7037 GB, free: 2.824 MB / 0.4948 GB Notification: Performance of matching and sorting (n=9): time 0.0004892/0.415, allocations: 185.3 kB / 0.7038 GB, free: 2.637 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.4151, allocations: 51.41 kB / 0.7039 GB, free: 2.574 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001574/0.4153, allocations: 203.7 kB / 0.7041 GB, free: 2.363 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.4153, allocations: 25.7 kB / 0.7041 GB, free: 2.332 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.573e-05/0.4154, allocations: 144.1 kB / 0.7042 GB, free: 2.184 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.4154, allocations: 27.56 kB / 0.7043 GB, free: 2.156 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.4154, allocations: 8 kB / 0.7043 GB, free: 2.148 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.4155, allocations: 326.8 kB / 0.7046 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.4157, allocations: 59.97 kB / 0.7046 GB, free: 1.762 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001652/0.4159, allocations: 93.11 kB / 0.7047 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.4162, allocations: 174.7 kB / 0.7049 GB, free: 1.457 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4162, allocations: 4 kB / 0.7049 GB, free: 1.453 MB / 0.4948 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004227/0.4166, allocations: 223 kB / 0.7051 GB, free: 1.223 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.4167, allocations: 37.7 kB / 0.7052 GB, free: 1.18 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.4167, allocations: 4.156 kB / 0.7052 GB, free: 1.176 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.4167, allocations: 8 kB / 0.7052 GB, free: 1.168 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001463/0.4169, allocations: 27.98 kB / 0.7052 GB, free: 1.141 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.4169, allocations: 7.938 kB / 0.7052 GB, free: 1.133 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.417, allocations: 23.83 kB / 0.7052 GB, free: 1.109 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.4171, allocations: 8 kB / 0.7052 GB, free: 1.102 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 ($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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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 0.0001031/0.4172, allocations: 141.6 kB / 0.7054 GB, free: 0.9531 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.036e-05/0.4172, allocations: 15.81 kB / 0.7054 GB, free: 0.9375 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003603/0.4176, allocations: 155.2 kB / 0.7055 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-06/0.4176, allocations: 0 / 0.7055 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.4176, allocations: 0 / 0.7055 GB, free: 0.7852 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.4176, allocations: 4 kB / 0.7055 GB, free: 0.7812 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001786/0.4178, allocations: 229.5 kB / 0.7058 GB, free: 0.5078 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4178, allocations: 0 / 0.7058 GB, free: 0.5078 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.4179, allocations: 19.98 kB / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.4179, allocations: 0 / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.4179, allocations: 0 / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4179, allocations: 0 / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4179, allocations: 4 kB / 0.7058 GB, free: 496 kB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004912/0.4184, allocations: 232.7 kB / 0.706 GB, free: 244 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.4185, allocations: 92.89 kB / 0.7061 GB, free: 132 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.4185, allocations: 8.062 kB / 0.7061 GB, free: 124 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001089/0.4187, allocations: 11.98 kB / 0.7061 GB, free: 112 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.095e-05/0.4187, allocations: 11.98 kB / 0.7061 GB, free: 100 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.4187, allocations: 4 kB / 0.7061 GB, free: 96 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0001176/0.4188, allocations: 139.2 kB / 0.7063 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4189, allocations: 0 / 0.7063 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.000228/0.4191, allocations: 43.91 kB / 0.7063 GB, free: 15.91 MB / 0.5105 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 (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001806/0.4193, allocations: 147.3 kB / 0.7064 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004167/0.4197, allocations: 179.5 kB / 0.7066 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.4197, allocations: 4 kB / 0.7066 GB, free: 15.57 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001607/0.4199, allocations: 55.91 kB / 0.7067 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003014/0.4202, allocations: 47.83 kB / 0.7067 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007004/0.4209, allocations: 477.6 kB / 0.7072 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.4212, allocations: 0.7165 MB / 0.7079 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.465e-05/0.4213, allocations: 17.42 kB / 0.7079 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.229e-05/0.4213, allocations: 19.44 kB / 0.7079 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of SimCode: time 3.11e-07/0.4213, allocations: 0 / 0.7079 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of Templates: time 0.004916/0.4262, allocations: 2.346 MB / 0.7102 GB, free: 11.86 MB / 0.5105 GB 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