Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") translateModel(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rho_a|rho_b|mu_a|mu_b|dp|m_flow1|m_flow2|der_m_flow1",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002332/0.002332, allocations: 175 kB / 17.41 MB, free: 4.391 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.381/1.381, allocations: 225.7 MB / 243.9 MB, free: 8.461 MB / 202.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.0009707/0.0009707, allocations: 92.42 kB / 295 MB, free: 9.484 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.391/0.391, allocations: 44.32 MB / 390.5 MB, free: 38.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006752/0.0006753, allocations: 8 kB / 463.2 MB, free: 460 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3827, allocations: 61.89 MB / 0.5127 GB, free: 37.91 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.001217/0.3839, allocations: 1.159 MB / 0.5139 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.3855, allocations: 1.899 MB / 0.5157 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.768e-05/0.3855, allocations: 0 / 0.5157 GB, free: 35.46 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001648/0.3857, allocations: 33.52 kB / 0.5158 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001635/0.3859, allocations: 34.78 kB / 0.5158 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003326/0.3862, allocations: 172.6 kB / 0.516 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.173e-05/0.3863, allocations: 51.64 kB / 0.516 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.502e-05/0.3864, allocations: 8.922 kB / 0.516 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.436e-05/0.3864, allocations: 22.67 kB / 0.516 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.447e-05/0.3865, allocations: 30.45 kB / 0.5161 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 9.929e-06/0.3865, allocations: 3.938 kB / 0.5161 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004495/0.387, allocations: 314.9 kB / 0.5164 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.387, allocations: 7.922 kB / 0.5164 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.153e-05/0.387, allocations: 52.41 kB / 0.5164 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003513/0.3874, allocations: 272.9 kB / 0.5167 GB, free: 35.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3874, allocations: 0 / 0.5167 GB, free: 35.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3874, allocations: 0 / 0.5167 GB, free: 35.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.3874, allocations: 6.844 kB / 0.5167 GB, free: 35.05 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003946/0.3878, allocations: 405.2 kB / 0.5171 GB, free: 34.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3879, allocations: 8.938 kB / 0.5171 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.526e-05/0.3879, allocations: 7.75 kB / 0.5171 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.969e-05/0.388, allocations: 177.5 kB / 0.5173 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.388, allocations: 4.375 kB / 0.5173 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.088e-05/0.388, allocations: 3.312 kB / 0.5173 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.3882, allocations: 66.08 kB / 0.5173 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.907e-05/0.3882, allocations: 4 kB / 0.5173 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.3882, allocations: 6.906 kB / 0.5173 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3882, allocations: 0 / 0.5173 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.607e-05/0.3883, allocations: 59.52 kB / 0.5174 GB, free: 34.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001431/0.3885, allocations: 182.4 kB / 0.5176 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.423e-05/0.3885, allocations: 59.62 kB / 0.5176 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.147e-05/0.3886, allocations: 39.12 kB / 0.5177 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.904e-05/0.3887, allocations: 21.36 kB / 0.5177 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.3887, allocations: 39.11 kB / 0.5177 GB, free: 34.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.3887, allocations: 0 / 0.5177 GB, free: 34.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.01815/0.4068, allocations: 1.688 MB / 0.5194 GB, free: 33.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/0.4069, allocations: 58.56 kB / 0.5194 GB, free: 33.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.12e-05/0.407, allocations: 135.2 kB / 0.5196 GB, free: 33.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.407, allocations: 25.7 kB / 0.5196 GB, free: 33.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.584e-05/0.4071, allocations: 94.53 kB / 0.5197 GB, free: 33.38 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.121e-05/0.4071, allocations: 36.33 kB / 0.5197 GB, free: 33.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.909e-05/0.4071, allocations: 4 kB / 0.5197 GB, free: 33.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.028e-05/0.4072, allocations: 316.7 kB / 0.52 GB, free: 33.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006147/0.4078, allocations: 209.5 kB / 0.5202 GB, free: 32.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006166/0.4084, allocations: 224.1 kB / 0.5204 GB, free: 32.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.4096, allocations: 393.2 kB / 0.5208 GB, free: 32.74 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4097, allocations: 0 / 0.5208 GB, free: 32.74 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.001314/0.411, allocations: 492.7 kB / 0.5213 GB, free: 32.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.411, allocations: 3.344 kB / 0.5213 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.411, allocations: 0 / 0.5213 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.34e-05/0.411, allocations: 2.781 kB / 0.5213 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005345/0.4116, allocations: 79.44 kB / 0.5214 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.4116, allocations: 0 / 0.5214 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000429/0.412, allocations: 40.52 kB / 0.5214 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.4121, allocations: 16.28 kB / 0.5214 GB, free: 32.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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.932e-05/0.4122, allocations: 123.2 kB / 0.5215 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.973e-05/0.4122, allocations: 6.688 kB / 0.5215 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00142/0.4136, allocations: 407.5 kB / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.4137, allocations: 0 / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4137, allocations: 0 / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4137, allocations: 2.75 kB / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002815/0.4165, allocations: 0.8159 MB / 0.5227 GB, free: 31.83 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.4165, allocations: 96 / 0.5227 GB, free: 31.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004961/0.417, allocations: 92.25 kB / 0.5228 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.417, allocations: 3.984 kB / 0.5228 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.4171, allocations: 13.34 kB / 0.5228 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.4171, allocations: 4 kB / 0.5228 GB, free: 31.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.4171, allocations: 10.3 kB / 0.5228 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001245/0.4183, allocations: 448.4 kB / 0.5233 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.529e-05/0.4184, allocations: 111.2 kB / 0.5234 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.545e-05/0.4185, allocations: 3.062 kB / 0.5234 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.4189, allocations: 42.84 kB / 0.5234 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.453e-05/0.419, allocations: 13.56 kB / 0.5234 GB, free: 31.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.749e-05/0.419, allocations: 20.05 kB / 0.5234 GB, free: 31.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.905e-05/0.419, allocations: 92.62 kB / 0.5235 GB, free: 31.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.419, allocations: 2.969 kB / 0.5235 GB, free: 31.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005983/0.4197, allocations: 173 kB / 0.5237 GB, free: 31.34 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0005809/0.4202, allocations: 250.5 kB / 0.5239 GB, free: 31.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001288/0.4215, allocations: 404.6 kB / 0.5243 GB, free: 31.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4216, allocations: 0 / 0.5243 GB, free: 31.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005915/0.4221, allocations: 166.9 kB / 0.5245 GB, free: 31.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003223/0.4225, allocations: 20.72 kB / 0.5245 GB, free: 31.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.4251, allocations: 0.5879 MB / 0.5251 GB, free: 30.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.4252, allocations: 0.6945 MB / 0.5258 GB, free: 30.08 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002386/0.4255, allocations: 43.27 kB / 0.5258 GB, free: 30.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001529/0.4257, allocations: 49.03 kB / 0.5258 GB, free: 30.04 MB / 378.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4257, allocations: 0 / 0.5258 GB, free: 30.04 MB / 378.7 MB Notification: Performance of Templates: time 0.01252/0.4382, allocations: 8.466 MB / 0.5341 GB, free: 29.51 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestComponents/Fittings/TestPressureLossDerivatives/TestPressureLossDerivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches