Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.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.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009004/0.0009004, allocations: 176.4 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.225/1.225, allocations: 225.7 MB / 241.9 MB, free: 412 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.0007406/0.0007407, allocations: 102.2 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.6276/0.6276, allocations: 90.98 MB / 435.2 MB, free: 24.41 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002898, allocations: 8 kB / 0.5029 GB, free: 9.418 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2877, allocations: 69.11 MB / 0.5704 GB, free: 45.62 MB / 442.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1196/0.4073, allocations: 132.5 MB / 0.6998 GB, free: 7.176 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004193/0.4115, allocations: 4.623 MB / 0.7043 GB, free: 2.246 MB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002042/0.4117, allocations: 7.938 kB / 0.7043 GB, free: 2.238 MB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005995/0.4123, allocations: 147.3 kB / 0.7045 GB, free: 2.094 MB / 0.4948 GB Notification: Performance of NFTyping.typeBindings: time 0.0007538/0.4131, allocations: 322.3 kB / 0.7048 GB, free: 1.777 MB / 0.4948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006284/0.4137, allocations: 247.2 kB / 0.705 GB, free: 1.535 MB / 0.4948 GB Notification: Performance of NFFlatten.flatten: time 0.0005357/0.4143, allocations: 0.5486 MB / 0.7056 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.4145, allocations: 68.45 kB / 0.7056 GB, free: 0.9258 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003894/0.4149, allocations: 179.2 kB / 0.7058 GB, free: 0.75 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002692/0.4151, allocations: 203.1 kB / 0.706 GB, free: 0.5508 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 3.134e-05/0.4152, allocations: 8 kB / 0.706 GB, free: 0.543 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009573/0.4162, allocations: 0.4989 MB / 0.7065 GB, free: 44 kB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 6.431e-05/0.4162, allocations: 51.77 kB / 0.7065 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.4164, allocations: 156.9 kB / 0.7067 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0006204/0.417, allocations: 486.5 kB / 0.7071 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.417, allocations: 0 / 0.7071 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.362e-06/0.417, allocations: 0 / 0.7071 GB, free: 15.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.417, allocations: 0 / 0.7071 GB, free: 15.36 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.0009758/0.418, allocations: 0.6141 MB / 0.7077 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.4181, allocations: 15.98 kB / 0.7078 GB, free: 14.67 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.723e-05/0.4181, allocations: 32.56 kB / 0.7078 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.4184, allocations: 270.7 kB / 0.7081 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.4184, allocations: 16.81 kB / 0.7081 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.4185, allocations: 24.12 kB / 0.7081 GB, free: 14.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.4189, allocations: 235.2 kB / 0.7083 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.4189, allocations: 0 / 0.7083 GB, free: 14.06 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.419, allocations: 16 kB / 0.7083 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.419, allocations: 4 kB / 0.7083 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004673/0.4195, allocations: 233.5 kB / 0.7086 GB, free: 13.81 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001212/0.4207, allocations: 1.049 MB / 0.7096 GB, free: 12.64 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004929/0.4212, allocations: 254.5 kB / 0.7098 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002443/0.4214, allocations: 133.5 kB / 0.71 GB, free: 12.25 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007933/0.4222, allocations: 0.8372 MB / 0.7108 GB, free: 11.31 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.4226, allocations: 177.7 kB / 0.7109 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 1.643e-06/0.4226, allocations: 0 / 0.7109 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.001067/0.4237, allocations: 499 kB / 0.7114 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.159e-05/0.4237, allocations: 59.39 kB / 0.7115 GB, free: 10.54 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.4239, allocations: 225 kB / 0.7117 GB, free: 10.31 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.424, allocations: 33.7 kB / 0.7117 GB, free: 10.27 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.241e-05/0.4241, allocations: 156.3 kB / 0.7119 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.244e-05/0.4241, allocations: 82.84 kB / 0.7119 GB, free: 10.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.482e-05/0.4242, allocations: 11.94 kB / 0.712 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000105/0.4243, allocations: 338.8 kB / 0.7123 GB, free: 9.684 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.4245, allocations: 91.95 kB / 0.7124 GB, free: 9.594 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000229/0.4247, allocations: 127.3 kB / 0.7125 GB, free: 9.461 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004268/0.4252, allocations: 250.8 kB / 0.7127 GB, free: 9.203 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4252, allocations: 4 kB / 0.7127 GB, free: 9.199 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006458/0.4258, allocations: 358.9 kB / 0.7131 GB, free: 8.836 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.4259, allocations: 45.56 kB / 0.7131 GB, free: 8.785 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.4259, allocations: 4.062 kB / 0.7131 GB, free: 8.781 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001828/0.4261, allocations: 40.83 kB / 0.7132 GB, free: 8.738 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001906/0.4263, allocations: 35.98 kB / 0.7132 GB, free: 8.703 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001076/0.4274, allocations: 1.425 MB / 0.7146 GB, free: 7.141 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002077/0.4276, allocations: 31.86 kB / 0.7146 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.483e-05/0.4276, allocations: 12 kB / 0.7146 GB, free: 7.098 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (26): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.4278, allocations: 155.7 kB / 0.7148 GB, free: 6.938 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.276e-05/0.4278, allocations: 27.62 kB / 0.7148 GB, free: 6.91 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007119/0.4285, allocations: 354.5 kB / 0.7151 GB, free: 6.555 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.4285, allocations: 3.938 kB / 0.7151 GB, free: 6.551 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.4285, allocations: 4 kB / 0.7151 GB, free: 6.547 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.4285, allocations: 3.938 kB / 0.7152 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.4296, allocations: 0.7612 MB / 0.7159 GB, free: 5.719 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.4296, allocations: 4 kB / 0.7159 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.4298, allocations: 35.98 kB / 0.7159 GB, free: 5.68 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001246/0.4299, allocations: 40.81 kB / 0.716 GB, free: 5.637 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.284e-05/0.4299, allocations: 16.03 kB / 0.716 GB, free: 5.621 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009752/0.4309, allocations: 1.409 MB / 0.7174 GB, free: 4.074 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.4309, allocations: 64 / 0.7174 GB, free: 4.074 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008569/0.4318, allocations: 0.5392 MB / 0.7179 GB, free: 3.516 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.4319, allocations: 104.8 kB / 0.718 GB, free: 3.395 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.523e-05/0.4319, allocations: 8 kB / 0.718 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001882/0.4321, allocations: 19.98 kB / 0.718 GB, free: 3.367 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.4322, allocations: 35.83 kB / 0.7181 GB, free: 3.332 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.804e-05/0.4322, allocations: 8.062 kB / 0.7181 GB, free: 3.324 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001474/0.4324, allocations: 164.5 kB / 0.7182 GB, free: 3.16 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4324, allocations: 3.938 kB / 0.7182 GB, free: 3.156 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003926/0.4328, allocations: 127.8 kB / 0.7183 GB, free: 3.031 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.m_flow) * 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 (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 2 * 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 {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002898/0.4331, allocations: 227.8 kB / 0.7186 GB, free: 2.805 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0007567/0.4338, allocations: 460.7 kB / 0.719 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4339, allocations: 0 / 0.719 GB, free: 2.324 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004085/0.4343, allocations: 296.3 kB / 0.7193 GB, free: 2.016 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005307/0.4348, allocations: 88.34 kB / 0.7194 GB, free: 1.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.4358, allocations: 0.7292 MB / 0.7201 GB, free: 1.176 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002738/0.4361, allocations: 0.756 MB / 0.7208 GB, free: 400 kB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001403/0.4363, allocations: 38.17 kB / 0.7209 GB, free: 364 kB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.24e-05/0.4364, allocations: 39.36 kB / 0.7209 GB, free: 324 kB / 0.5105 GB Notification: Performance of SimCode: time 2.2e-07/0.4364, allocations: 0 / 0.7209 GB, free: 324 kB / 0.5105 GB Notification: Performance of Templates: time 0.009244/0.4456, allocations: 5.71 MB / 0.7265 GB, free: 10.65 MB / 0.5261 GB make -j1 -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.makefile (rm -f ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-OM-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","../files/ThermofluidStream_OM_adaptions_ThermofluidStream.FlowControl.Tests.CheckValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches