Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_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.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.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_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_OM_adaptions_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.000849/0.0008491, allocations: 178.3 kB / 15.43 MB, free: 5.867 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.192/1.192, allocations: 225.7 MB / 241.9 MB, free: 372 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.0007698/0.0007701, allocations: 96.19 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.0-OM_adaptions/package.mo): time 0.5931/0.5931, allocations: 90.99 MB / 435.2 MB, free: 24.38 MB / 330.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.000275/0.000275, allocations: 8 kB / 0.503 GB, free: 9.375 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2769, allocations: 69.1 MB / 0.5704 GB, free: 45.81 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.1355/0.4125, allocations: 153.4 MB / 0.7202 GB, free: 1.824 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.01372/0.4262, allocations: 15.62 MB / 0.7355 GB, free: 1.348 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007164/0.427, allocations: 19.94 kB / 0.7355 GB, free: 1.328 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001358/0.4283, allocations: 0.5092 MB / 0.736 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.001811/0.4302, allocations: 0.7381 MB / 0.7367 GB, free: 76 kB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.432, allocations: 0.6852 MB / 0.7374 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of NFFlatten.flatten: time 0.00138/0.4334, allocations: 1.342 MB / 0.7387 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.4338, allocations: 270.2 kB / 0.739 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006336/0.4344, allocations: 394.2 kB / 0.7393 GB, free: 13.38 MB / 0.5417 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007175/0.4352, allocations: 0.5641 MB / 0.7399 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of NFPackage.collectConstants: time 9.803e-05/0.4353, allocations: 32 kB / 0.7399 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.4378, allocations: 1.357 MB / 0.7412 GB, free: 11.42 MB / 0.5417 GB Notification: Performance of NFScalarize.scalarize: time 0.0001261/0.4379, allocations: 127.3 kB / 0.7414 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of NFVerifyModel.verify: time 0.0004021/0.4383, allocations: 423.4 kB / 0.7418 GB, free: 10.87 MB / 0.5417 GB Notification: Performance of NFConvertDAE.convert: time 0.001974/0.4403, allocations: 1.332 MB / 0.7431 GB, free: 9.535 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.4403, allocations: 0 / 0.7431 GB, free: 9.535 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.142e-06/0.4403, allocations: 7.938 kB / 0.7431 GB, free: 9.527 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.532e-05/0.4404, allocations: 0 / 0.7431 GB, free: 9.527 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.001724/0.4421, allocations: 1.08 MB / 0.7441 GB, free: 8.398 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.4421, allocations: 11.98 kB / 0.7441 GB, free: 8.387 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001468/0.4423, allocations: 95.81 kB / 0.7442 GB, free: 8.293 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006126/0.4429, allocations: 0.5072 MB / 0.7447 GB, free: 7.746 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.925e-05/0.4429, allocations: 50.38 kB / 0.7448 GB, free: 7.695 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.586e-05/0.443, allocations: 68.38 kB / 0.7448 GB, free: 7.629 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.4441, allocations: 0.6635 MB / 0.7455 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.4442, allocations: 4 kB / 0.7455 GB, free: 6.957 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.72e-05/0.4442, allocations: 28 kB / 0.7455 GB, free: 6.93 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.4442, allocations: 16 kB / 0.7455 GB, free: 6.914 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009871/0.4452, allocations: 0.6402 MB / 0.7462 GB, free: 6.273 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003051/0.4483, allocations: 3.177 MB / 0.7493 GB, free: 2.734 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001182/0.4495, allocations: 0.6659 MB / 0.7499 GB, free: 2.062 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004139/0.4499, allocations: 279.3 kB / 0.7502 GB, free: 1.789 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002193/0.4521, allocations: 2.604 MB / 0.7527 GB, free: 14.77 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.495e-05/0.4521, allocations: 35.12 kB / 0.7528 GB, free: 14.73 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=57): time 1.963e-06/0.4522, allocations: 7.938 kB / 0.7528 GB, free: 14.72 MB / 0.5573 GB Notification: Performance of matching and sorting (n=58): time 0.003217/0.4554, allocations: 1.794 MB / 0.7545 GB, free: 12.83 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.4554, allocations: 59.97 kB / 0.7546 GB, free: 12.76 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004493/0.4559, allocations: 446.8 kB / 0.755 GB, free: 12.32 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.568e-05/0.4559, allocations: 37.7 kB / 0.755 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.4561, allocations: 348.2 kB / 0.7554 GB, free: 11.93 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001253/0.4563, allocations: 205 kB / 0.7556 GB, free: 11.73 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.108e-05/0.4563, allocations: 4 kB / 0.7556 GB, free: 11.72 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.4564, allocations: 374.8 kB / 0.7559 GB, free: 11.35 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003182/0.4567, allocations: 173 kB / 0.7561 GB, free: 11.18 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003483/0.4571, allocations: 229.5 kB / 0.7563 GB, free: 10.94 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006921/0.4578, allocations: 450.5 kB / 0.7567 GB, free: 10.49 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.4578, allocations: 0 / 0.7567 GB, free: 10.49 MB / 0.5573 GB Notification: Performance of matching and sorting (n=63) (initialization): time 0.001068/0.4589, allocations: 0.6472 MB / 0.7574 GB, free: 9.832 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.4589, allocations: 8 kB / 0.7574 GB, free: 9.824 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4589, allocations: 0 / 0.7574 GB, free: 9.824 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003512/0.4593, allocations: 104.9 kB / 0.7575 GB, free: 9.719 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003538/0.4596, allocations: 99.81 kB / 0.7576 GB, free: 9.621 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001845/0.4615, allocations: 1.894 MB / 0.7594 GB, free: 7.594 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003462/0.4619, allocations: 48.05 kB / 0.7595 GB, free: 7.547 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.4619, allocations: 20.11 kB / 0.7595 GB, free: 7.527 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.0002407/0.4622, allocations: 207.3 kB / 0.7597 GB, free: 7.316 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.866e-05/0.4622, allocations: 59.25 kB / 0.7597 GB, free: 7.258 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001484/0.4637, allocations: 0.7988 MB / 0.7605 GB, free: 6.441 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.033e-05/0.4638, allocations: 11.94 kB / 0.7605 GB, free: 6.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.4638, allocations: 4 kB / 0.7605 GB, free: 6.426 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.4638, allocations: 3.984 kB / 0.7605 GB, free: 6.422 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002197/0.466, allocations: 1.559 MB / 0.7621 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.466, allocations: 0 / 0.7621 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003348/0.4663, allocations: 107.8 kB / 0.7622 GB, free: 4.688 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003198/0.4667, allocations: 116.7 kB / 0.7623 GB, free: 4.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-05/0.4667, allocations: 23.98 kB / 0.7623 GB, free: 4.547 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001752/0.4685, allocations: 1.894 MB / 0.7642 GB, free: 2.523 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4685, allocations: 0 / 0.7642 GB, free: 2.523 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/0.47, allocations: 1.052 MB / 0.7652 GB, free: 1.445 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.4702, allocations: 132.5 kB / 0.7653 GB, free: 1.297 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.116e-05/0.4703, allocations: 15.94 kB / 0.7653 GB, free: 1.281 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000311/0.4706, allocations: 43.94 kB / 0.7654 GB, free: 1.238 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.4707, allocations: 52.48 kB / 0.7654 GB, free: 1.188 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.436e-05/0.4707, allocations: 20 kB / 0.7654 GB, free: 1.168 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0003066/0.471, allocations: 314.8 kB / 0.7657 GB, free: 0.8633 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4711, allocations: 0 / 0.7657 GB, free: 0.8633 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001047/0.4721, allocations: 327.8 kB / 0.766 GB, free: 0.543 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.0008113/0.4729, allocations: 495.4 kB / 0.7665 GB, free: 56 kB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.176/0.6489, allocations: 0.6912 MB / 0.7672 GB, free: 166.9 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.649, allocations: 0.5625 kB / 0.7672 GB, free: 166.9 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0008054/0.6498, allocations: 0.4904 MB / 0.7677 GB, free: 166.8 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009989/0.6508, allocations: 179.8 kB / 0.7678 GB, free: 166.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001764/0.6526, allocations: 1.735 MB / 0.7695 GB, free: 165.9 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.6529, allocations: 0.9421 MB / 0.7705 GB, free: 165.2 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0003579/0.6532, allocations: 128.8 kB / 0.7706 GB, free: 165.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.6533, allocations: 61.03 kB / 0.7706 GB, free: 165.1 MB / 0.5573 GB Notification: Performance of SimCode: time 5.91e-07/0.6534, allocations: 0 / 0.7706 GB, free: 165.1 MB / 0.5573 GB Notification: Performance of Templates: time 0.01883/0.6722, allocations: 14.04 MB / 0.7844 GB, free: 163.7 MB / 0.5573 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches