Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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.0-OM_adaptions/package.mo", uses=false) Using package ThermofluidStream with version 0.4.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/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_OM_adaptions_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_OM_adaptions_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.0008751/0.0008751, allocations: 177.3 kB / 15.43 MB, free: 6.199 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.197/1.197, allocations: 225.7 MB / 241.9 MB, free: 404 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.0007321/0.0007321, allocations: 96.5 kB / 293.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ThermofluidStream 0.4.0-OM_adaptions/package.mo): time 0.6027/0.6027, allocations: 90.98 MB / 435.2 MB, free: 24.44 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002723/0.0002724, allocations: 8 kB / 0.5029 GB, free: 9.441 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2639, allocations: 69.1 MB / 0.5704 GB, free: 45.59 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.TerminalSourceSink): time 0.1127/0.3767, allocations: 129.1 MB / 0.6965 GB, free: 10.62 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.002249/0.379, allocations: 2.447 MB / 0.6989 GB, free: 8.059 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001323/0.3791, allocations: 4 kB / 0.6989 GB, free: 8.055 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003673/0.3795, allocations: 95.52 kB / 0.699 GB, free: 7.961 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.3798, allocations: 119.3 kB / 0.6991 GB, free: 7.844 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.3801, allocations: 159.5 kB / 0.6993 GB, free: 7.688 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0002885/0.3804, allocations: 318.7 kB / 0.6996 GB, free: 7.375 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000106/0.3806, allocations: 53.64 kB / 0.6996 GB, free: 7.324 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003576/0.3809, allocations: 155.3 kB / 0.6998 GB, free: 7.172 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001566/0.3811, allocations: 111.5 kB / 0.6999 GB, free: 7.062 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.3811, allocations: 8 kB / 0.6999 GB, free: 7.055 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003924/0.3815, allocations: 239.4 kB / 0.7001 GB, free: 6.82 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 3.405e-05/0.3816, allocations: 27.84 kB / 0.7001 GB, free: 6.793 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.258e-05/0.3817, allocations: 101.3 kB / 0.7002 GB, free: 6.688 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.382, allocations: 253.3 kB / 0.7005 GB, free: 6.441 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.382, allocations: 4 kB / 0.7005 GB, free: 6.438 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.192e-06/0.382, allocations: 0 / 0.7005 GB, free: 6.438 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.382, allocations: 0 / 0.7005 GB, free: 6.438 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.0007165/0.3828, allocations: 0.4967 MB / 0.701 GB, free: 5.883 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3828, allocations: 15.98 kB / 0.701 GB, free: 5.867 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/0.3828, allocations: 16.75 kB / 0.701 GB, free: 5.852 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001928/0.383, allocations: 216 kB / 0.7012 GB, free: 5.602 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.3831, allocations: 8.609 kB / 0.7012 GB, free: 5.594 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.192e-05/0.3831, allocations: 24.2 kB / 0.7012 GB, free: 5.57 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.3834, allocations: 168.3 kB / 0.7014 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.3834, allocations: 0 / 0.7014 GB, free: 5.398 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3835, allocations: 4 kB / 0.7014 GB, free: 5.395 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.703e-06/0.3835, allocations: 7.984 kB / 0.7014 GB, free: 5.387 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002997/0.3838, allocations: 111.9 kB / 0.7015 GB, free: 5.277 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000866/0.3846, allocations: 0.7972 MB / 0.7023 GB, free: 4.379 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002921/0.3849, allocations: 114.5 kB / 0.7024 GB, free: 4.258 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.3851, allocations: 52.83 kB / 0.7025 GB, free: 4.203 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 7.391e-05/0.3852, allocations: 85.05 kB / 0.7025 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002444/0.3854, allocations: 107.3 kB / 0.7026 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=9): time 1.422e-06/0.3854, allocations: 0 / 0.7026 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of matching and sorting (n=9): time 0.0004559/0.3859, allocations: 177.4 kB / 0.7028 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.346e-05/0.386, allocations: 59.41 kB / 0.7029 GB, free: 3.734 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.3861, allocations: 191.8 kB / 0.7031 GB, free: 3.535 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.3861, allocations: 25.7 kB / 0.7031 GB, free: 3.504 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/0.3862, allocations: 147.8 kB / 0.7032 GB, free: 3.352 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.3862, allocations: 27.66 kB / 0.7032 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.094e-06/0.3862, allocations: 0 / 0.7032 GB, free: 3.324 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3864, allocations: 334.8 kB / 0.7036 GB, free: 2.988 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3865, allocations: 59.88 kB / 0.7036 GB, free: 2.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.3867, allocations: 93.11 kB / 0.7037 GB, free: 2.82 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002839/0.387, allocations: 174.8 kB / 0.7039 GB, free: 2.625 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.387, allocations: 4 kB / 0.7039 GB, free: 2.621 MB / 0.4948 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000403/0.3874, allocations: 227 kB / 0.7041 GB, free: 2.387 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.727e-05/0.3874, allocations: 31.11 kB / 0.7041 GB, free: 2.352 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3874, allocations: 8.156 kB / 0.7041 GB, free: 2.344 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3875, allocations: 3.938 kB / 0.7041 GB, free: 2.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001392/0.3876, allocations: 31.98 kB / 0.7042 GB, free: 2.309 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.262e-06/0.3876, allocations: 3.938 kB / 0.7042 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001453/0.3878, allocations: 27.83 kB / 0.7042 GB, free: 2.277 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.3878, allocations: 8 kB / 0.7042 GB, free: 2.27 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 9.165e-05/0.3879, allocations: 145.8 kB / 0.7043 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.3879, allocations: 15.81 kB / 0.7044 GB, free: 2.102 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003304/0.3883, allocations: 155.2 kB / 0.7045 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.3883, allocations: 0 / 0.7045 GB, free: 1.949 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.3883, allocations: 4 kB / 0.7045 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.3883, allocations: 0 / 0.7045 GB, free: 1.945 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.3885, allocations: 225.5 kB / 0.7047 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3885, allocations: 0 / 0.7047 GB, free: 1.676 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001165/0.3886, allocations: 15.98 kB / 0.7047 GB, free: 1.66 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3886, allocations: 4 kB / 0.7047 GB, free: 1.656 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.3886, allocations: 4 kB / 0.7048 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.3886, allocations: 0 / 0.7048 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3886, allocations: 0 / 0.7048 GB, free: 1.652 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004515/0.3891, allocations: 224.7 kB / 0.705 GB, free: 1.414 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 4.658e-05/0.3891, allocations: 101 kB / 0.7051 GB, free: 1.297 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.672e-05/0.3892, allocations: 8 kB / 0.7051 GB, free: 1.289 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.3893, allocations: 11.98 kB / 0.7051 GB, free: 1.277 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.935e-05/0.3893, allocations: 11.98 kB / 0.7051 GB, free: 1.266 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.036e-05/0.3894, allocations: 4 kB / 0.7051 GB, free: 1.262 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 9.762e-05/0.3895, allocations: 135.2 kB / 0.7052 GB, free: 1.129 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3895, allocations: 4 kB / 0.7052 GB, free: 1.125 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0002174/0.3897, allocations: 36 kB / 0.7053 GB, free: 1.09 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 (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.0001619/0.3899, allocations: 155.2 kB / 0.7054 GB, free: 0.9297 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0003586/0.3902, allocations: 183.5 kB / 0.7056 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3902, allocations: 0 / 0.7056 GB, free: 0.7383 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001455/0.3904, allocations: 51.91 kB / 0.7056 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002787/0.3907, allocations: 47.97 kB / 0.7057 GB, free: 0.6406 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006337/0.3913, allocations: 477.9 kB / 0.7061 GB, free: 140 kB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002307/0.3916, allocations: 0.7204 MB / 0.7068 GB, free: 15.39 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.097e-05/0.3916, allocations: 21.41 kB / 0.7069 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.869e-05/0.3917, allocations: 11.44 kB / 0.7069 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of SimCode: time 2.71e-07/0.3917, allocations: 0 / 0.7069 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of Templates: time 0.004762/0.3965, allocations: 2.353 MB / 0.7092 GB, free: 13.03 MB / 0.5105 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.TerminalSourceSink_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.Boundaries.Tests.TerminalSourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches