Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.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.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") translateModel(ThermofluidStream.Boundaries.Tests.SourceSink,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|source1.outlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008577/0.0008578, allocations: 181.1 kB / 15.43 MB, free: 5.777 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.2/1.2, allocations: 225.7 MB / 241.9 MB, free: 376 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.0007157/0.0007157, allocations: 96.97 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.6028/0.6028, allocations: 91.65 MB / 435.8 MB, free: 23.57 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002631/0.0002631, allocations: 8 kB / 0.5038 GB, free: 8.293 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.288, allocations: 69.29 MB / 0.5714 GB, free: 45.64 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Boundaries.Tests.SourceSink): time 0.1197/0.4077, allocations: 129.3 MB / 0.6977 GB, free: 9.289 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003265/0.411, allocations: 3.729 MB / 0.7013 GB, free: 5.406 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001329/0.4112, allocations: 0 / 0.7013 GB, free: 5.406 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0003852/0.4116, allocations: 107.4 kB / 0.7014 GB, free: 5.301 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.4119, allocations: 155.1 kB / 0.7016 GB, free: 5.148 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.4123, allocations: 175.4 kB / 0.7018 GB, free: 4.977 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0003266/0.4126, allocations: 354.6 kB / 0.7021 GB, free: 4.629 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001124/0.4127, allocations: 47.73 kB / 0.7021 GB, free: 4.586 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003225/0.413, allocations: 167.3 kB / 0.7023 GB, free: 4.422 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.4132, allocations: 107.5 kB / 0.7024 GB, free: 4.316 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.4132, allocations: 4 kB / 0.7024 GB, free: 4.312 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005095/0.4138, allocations: 335.2 kB / 0.7027 GB, free: 3.984 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 2.771e-05/0.4138, allocations: 19.86 kB / 0.7027 GB, free: 3.965 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 9.369e-05/0.4139, allocations: 101.3 kB / 0.7028 GB, free: 3.859 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.4143, allocations: 287.1 kB / 0.7031 GB, free: 3.578 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4143, allocations: 7.938 kB / 0.7031 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.723e-06/0.4143, allocations: 0 / 0.7031 GB, free: 3.57 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.4143, allocations: 0 / 0.7031 GB, free: 3.57 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005961/0.4149, allocations: 462.8 kB / 0.7036 GB, free: 3.07 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.415, allocations: 11.98 kB / 0.7036 GB, free: 3.059 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.415, allocations: 24.66 kB / 0.7036 GB, free: 3.035 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.4152, allocations: 224.5 kB / 0.7038 GB, free: 2.777 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.4152, allocations: 4.375 kB / 0.7038 GB, free: 2.773 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.863e-05/0.4153, allocations: 16.38 kB / 0.7038 GB, free: 2.758 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.4155, allocations: 144.2 kB / 0.704 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4155, allocations: 0 / 0.704 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.4155, allocations: 4 kB / 0.704 GB, free: 2.598 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.4155, allocations: 4 kB / 0.704 GB, free: 2.594 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.4157, allocations: 75.91 kB / 0.7041 GB, free: 2.52 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007602/0.4165, allocations: 0.7481 MB / 0.7048 GB, free: 1.668 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.4166, allocations: 129.2 kB / 0.7049 GB, free: 1.523 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.254e-05/0.4167, allocations: 45.84 kB / 0.7049 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.859e-05/0.4168, allocations: 15.98 kB / 0.705 GB, free: 1.457 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.4168, allocations: 38.5 kB / 0.705 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.4168, allocations: 0 / 0.705 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=12): time 0.0006752/0.4175, allocations: 365.3 kB / 0.7053 GB, free: 1.004 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.4175, allocations: 89.05 kB / 0.7054 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001509/0.4177, allocations: 187.8 kB / 0.7056 GB, free: 0.6992 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.4177, allocations: 29.7 kB / 0.7056 GB, free: 0.6641 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 5.78e-05/0.4178, allocations: 123.9 kB / 0.7058 GB, free: 0.5391 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.955e-05/0.4178, allocations: 51.3 kB / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.039e-06/0.4178, allocations: 0 / 0.7058 GB, free: 500 kB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001075/0.418, allocations: 330.8 kB / 0.7061 GB, free: 160 kB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.735e-05/0.418, allocations: 32.11 kB / 0.7062 GB, free: 128 kB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.963e-05/0.4181, allocations: 71.42 kB / 0.7062 GB, free: 44 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.4183, allocations: 107.9 kB / 0.7063 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.4183, allocations: 4 kB / 0.7063 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000278/0.4186, allocations: 179 kB / 0.7065 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4186, allocations: 4 kB / 0.7065 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.4186, allocations: 0 / 0.7065 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001743/0.4188, allocations: 45.62 kB / 0.7065 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.857e-05/0.4188, allocations: 8 kB / 0.7066 GB, free: 15.67 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001624/0.4205, allocations: 2.56 MB / 0.7091 GB, free: 12.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.862e-05/0.4206, allocations: 11.88 kB / 0.7091 GB, free: 12.84 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.4206, allocations: 8.109 kB / 0.7091 GB, free: 12.83 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 9.765e-05/0.4207, allocations: 138.5 kB / 0.7092 GB, free: 12.68 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.992e-05/0.4207, allocations: 15.81 kB / 0.7092 GB, free: 12.67 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002922/0.421, allocations: 176.5 kB / 0.7094 GB, free: 12.49 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.4211, allocations: 3.938 kB / 0.7094 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.4211, allocations: 0 / 0.7094 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4211, allocations: 0 / 0.7094 GB, free: 12.48 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.4213, allocations: 245.5 kB / 0.7096 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4214, allocations: 0 / 0.7096 GB, free: 12.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.999e-05/0.4214, allocations: 8 kB / 0.7096 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000113/0.4215, allocations: 37.69 kB / 0.7097 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.4215, allocations: 4 kB / 0.7097 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001513/0.4231, allocations: 2.568 MB / 0.7122 GB, free: 9.309 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4231, allocations: 4.031 kB / 0.7122 GB, free: 9.305 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003868/0.4235, allocations: 384.1 kB / 0.7126 GB, free: 8.906 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.295e-05/0.4235, allocations: 88.95 kB / 0.7126 GB, free: 8.801 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.4236, allocations: 11.98 kB / 0.7126 GB, free: 8.789 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.4237, allocations: 0 / 0.7126 GB, free: 8.789 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.4237, allocations: 11.92 kB / 0.7127 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.4238, allocations: 8 kB / 0.7127 GB, free: 8.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001084/0.4239, allocations: 141.5 kB / 0.7128 GB, free: 8.633 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4239, allocations: 0 / 0.7128 GB, free: 8.633 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003348/0.4242, allocations: 52.06 kB / 0.7129 GB, free: 8.582 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (sink.inlet.m_flow,sink1.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000247/0.4245, allocations: 167.2 kB / 0.713 GB, free: 8.406 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005076/0.425, allocations: 392.7 kB / 0.7134 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.425, allocations: 0 / 0.7134 GB, free: 7.984 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003296/0.4253, allocations: 336.8 kB / 0.7137 GB, free: 7.617 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005073/0.4258, allocations: 40.03 kB / 0.7137 GB, free: 7.578 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007871/0.4266, allocations: 0.5605 MB / 0.7143 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.4269, allocations: 0.7359 MB / 0.715 GB, free: 6.234 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 5.914e-05/0.427, allocations: 17.42 kB / 0.715 GB, free: 6.215 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.254e-05/0.427, allocations: 15.44 kB / 0.715 GB, free: 6.199 MB / 0.5105 GB Notification: Performance of SimCode: time 1.573e-06/0.427, allocations: 0 / 0.715 GB, free: 6.199 MB / 0.5105 GB Notification: Performance of Templates: time 0.006577/0.4336, allocations: 3.241 MB / 0.7182 GB, free: 2.969 MB / 0.5105 GB make -j1 -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.makefile (rm -f ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe >> ../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.sim & ./ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Boundaries.Tests.SourceSink_ref.mat","../files/ThermofluidStream_ThermofluidStream.Boundaries.Tests.SourceSink.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches