Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008459/0.000846, allocations: 179 kB / 15.43 MB, free: 6.207 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.314/1.314, 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.0007835/0.0007832, allocations: 97.97 kB / 293.1 MB, free: 12.89 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.6202/0.6202, allocations: 91.65 MB / 435.8 MB, free: 23.57 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0002915/0.0002916, allocations: 8 kB / 0.5038 GB, free: 8.301 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2794, allocations: 69.29 MB / 0.5714 GB, free: 45.66 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1403/0.4197, allocations: 153.4 MB / 0.7213 GB, free: 0.6992 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01378/0.4335, allocations: 15.63 MB / 0.7365 GB, free: 220 kB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000715/0.4343, allocations: 23.88 kB / 0.7365 GB, free: 196 kB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.4356, allocations: 0.5053 MB / 0.737 GB, free: 15.68 MB / 0.5417 GB Notification: Performance of NFTyping.typeBindings: time 0.001822/0.4374, allocations: 0.7304 MB / 0.7377 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of NFTyping.typeClassSections: time 0.001775/0.4392, allocations: 0.693 MB / 0.7384 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00139/0.4406, allocations: 1.338 MB / 0.7397 GB, free: 12.91 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003768/0.441, allocations: 254.3 kB / 0.74 GB, free: 12.65 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006277/0.4417, allocations: 406.1 kB / 0.7404 GB, free: 12.25 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007426/0.4424, allocations: 0.5563 MB / 0.7409 GB, free: 11.69 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 8.815e-05/0.4425, allocations: 32 kB / 0.7409 GB, free: 11.66 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.445, allocations: 1.357 MB / 0.7423 GB, free: 10.3 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001288/0.4451, allocations: 131.3 kB / 0.7424 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0003845/0.4455, allocations: 423.4 kB / 0.7428 GB, free: 9.75 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001927/0.4474, allocations: 1.34 MB / 0.7441 GB, free: 8.406 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.4475, allocations: 0 / 0.7441 GB, free: 8.406 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.162e-06/0.4475, allocations: 0 / 0.7441 GB, free: 8.406 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.162e-05/0.4475, allocations: 0 / 0.7441 GB, free: 8.406 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.001703/0.4492, allocations: 1.081 MB / 0.7451 GB, free: 7.277 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.4492, allocations: 15.98 kB / 0.7452 GB, free: 7.262 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.4494, allocations: 91.81 kB / 0.7453 GB, free: 7.172 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006179/0.45, allocations: 0.5072 MB / 0.7457 GB, free: 6.625 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.064e-05/0.4501, allocations: 50.38 kB / 0.7458 GB, free: 6.574 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.4502, allocations: 76.31 kB / 0.7459 GB, free: 6.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.4512, allocations: 0.6635 MB / 0.7465 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.4513, allocations: 0 / 0.7465 GB, free: 5.832 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.46e-05/0.4513, allocations: 32 kB / 0.7465 GB, free: 5.801 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.583e-05/0.4513, allocations: 19.98 kB / 0.7466 GB, free: 5.781 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001007/0.4523, allocations: 0.6364 MB / 0.7472 GB, free: 5.145 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003104/0.4555, allocations: 3.18 MB / 0.7503 GB, free: 1.602 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.4567, allocations: 0.6659 MB / 0.7509 GB, free: 0.9297 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004252/0.4572, allocations: 282.4 kB / 0.7512 GB, free: 0.6523 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002452/0.4596, allocations: 2.6 MB / 0.7538 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.785e-05/0.4597, allocations: 39.12 kB / 0.7538 GB, free: 13.59 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=57): time 2.504e-06/0.4597, allocations: 7.938 kB / 0.7538 GB, free: 13.58 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.003426/0.4631, allocations: 1.782 MB / 0.7555 GB, free: 11.71 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.4632, allocations: 59.97 kB / 0.7556 GB, free: 11.64 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004712/0.4636, allocations: 442.8 kB / 0.756 GB, free: 11.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.4637, allocations: 45.69 kB / 0.7561 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.464, allocations: 348.2 kB / 0.7564 GB, free: 10.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.4642, allocations: 201 kB / 0.7566 GB, free: 10.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.552e-05/0.4642, allocations: 12 kB / 0.7566 GB, free: 10.59 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001918/0.4644, allocations: 366.8 kB / 0.7569 GB, free: 10.22 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003612/0.4648, allocations: 177 kB / 0.7571 GB, free: 10.05 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003732/0.4652, allocations: 233.5 kB / 0.7573 GB, free: 9.809 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000766/0.4659, allocations: 450.5 kB / 0.7578 GB, free: 9.355 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4659, allocations: 0 / 0.7578 GB, free: 9.355 MB / 0.5573 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001116/0.4671, allocations: 0.6433 MB / 0.7584 GB, free: 8.703 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.4671, allocations: 4 kB / 0.7584 GB, free: 8.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4671, allocations: 4 kB / 0.7584 GB, free: 8.695 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003707/0.4675, allocations: 104.9 kB / 0.7585 GB, free: 8.59 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003486/0.4678, allocations: 95.89 kB / 0.7586 GB, free: 8.496 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001932/0.4698, allocations: 1.902 MB / 0.7605 GB, free: 6.461 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003108/0.4701, allocations: 36 kB / 0.7605 GB, free: 6.426 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-05/0.4702, allocations: 32.16 kB / 0.7605 GB, free: 6.395 MB / 0.5573 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 (52): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002288/0.4704, allocations: 201.5 kB / 0.7607 GB, free: 6.188 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.679e-05/0.4705, allocations: 59.25 kB / 0.7608 GB, free: 6.129 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001463/0.472, allocations: 0.7988 MB / 0.7615 GB, free: 5.309 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.236e-06/0.472, allocations: 15.88 kB / 0.7616 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.472, allocations: 0 / 0.7616 GB, free: 5.293 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.472, allocations: 3.984 kB / 0.7616 GB, free: 5.289 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002203/0.4742, allocations: 1.566 MB / 0.7631 GB, free: 3.656 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.4742, allocations: 0 / 0.7631 GB, free: 3.656 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.4746, allocations: 95.89 kB / 0.7632 GB, free: 3.562 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000317/0.4749, allocations: 120.7 kB / 0.7633 GB, free: 3.441 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.174e-05/0.4749, allocations: 20 kB / 0.7633 GB, free: 3.422 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001728/0.4767, allocations: 1.902 MB / 0.7652 GB, free: 1.391 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.4767, allocations: 4.031 kB / 0.7652 GB, free: 1.387 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001555/0.4782, allocations: 1.049 MB / 0.7662 GB, free: 320 kB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.4784, allocations: 136.3 kB / 0.7663 GB, free: 164 kB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.511e-05/0.4784, allocations: 19.92 kB / 0.7664 GB, free: 144 kB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003081/0.4788, allocations: 44.03 kB / 0.7664 GB, free: 100 kB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.754e-05/0.4789, allocations: 48.5 kB / 0.7664 GB, free: 52 kB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.4789, allocations: 19.98 kB / 0.7665 GB, free: 32 kB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.1967/0.6756, allocations: 309.9 kB / 0.7668 GB, free: 166.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6.92e-07/0.6757, allocations: 4.875 kB / 0.7668 GB, free: 166.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001246/0.6769, allocations: 324.6 kB / 0.7671 GB, free: 166.5 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.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 (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008382/0.6778, allocations: 484.3 kB / 0.7675 GB, free: 166.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001336/0.6791, allocations: 0.6992 MB / 0.7682 GB, free: 166.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.6791, allocations: 0 / 0.7682 GB, free: 166.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0006486/0.6798, allocations: 0.4916 MB / 0.7687 GB, free: 166.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009042/0.6807, allocations: 179.8 kB / 0.7689 GB, free: 166.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001678/0.6824, allocations: 1.735 MB / 0.7706 GB, free: 165.2 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.6827, allocations: 0.9461 MB / 0.7715 GB, free: 164.5 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003101/0.683, allocations: 119.3 kB / 0.7716 GB, free: 164.4 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001223/0.6831, allocations: 56.78 kB / 0.7717 GB, free: 164.4 MB / 0.5573 GB Notification: Performance of SimCode: time 2.9e-07/0.6831, allocations: 0 / 0.7717 GB, free: 164.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.01823/0.7014, allocations: 14.03 MB / 0.7854 GB, free: 163 MB / 0.5573 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches