Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe2.mediums.2..h|pipe2.mediums.2..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valve.filter.x.1.|valve.filter.x.2.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 111.6 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001185/0.001185, allocations: 187.1 kB / 19.39 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 222.9 MB / 243.1 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2019/0.2019, allocations: 44.19 MB / 337.4 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 63.91 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.288, allocations: 60.82 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.08978/0.3779, allocations: 91.75 MB / 0.6092 GB, free: 12 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04843/0.4263, allocations: 37.28 MB / 0.6456 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.4287, allocations: 83.56 kB / 0.6457 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003189/0.4319, allocations: 1.173 MB / 0.6468 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.02006/0.452, allocations: 8.009 MB / 0.6546 GB, free: 1.332 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0216/0.4736, allocations: 9.089 MB / 0.6635 GB, free: 8.25 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.008586/0.4822, allocations: 6.636 MB / 0.67 GB, free: 1.59 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002671/0.4849, allocations: 1.496 MB / 0.6714 GB, free: 72 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005247/0.4902, allocations: 2.601 MB / 0.674 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.03013/0.5203, allocations: 13.53 MB / 0.6872 GB, free: 15.74 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0009031/0.5213, allocations: 216 kB / 0.6874 GB, free: 15.53 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02073/0.542, allocations: 10.46 MB / 0.6976 GB, free: 5.059 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001566/0.5436, allocations: 0.9427 MB / 0.6985 GB, free: 4.113 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002649/0.5463, allocations: 1.4 MB / 0.6999 GB, free: 2.707 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01985/0.5662, allocations: 9.486 MB / 0.7092 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.5662, allocations: 4 kB / 0.7092 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.894e-06/0.5662, allocations: 0 / 0.7092 GB, free: 9.191 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001063/0.5663, allocations: 0 / 0.7092 GB, free: 9.191 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 512 * Number of variables: 512 Notification: Performance of Generate backend data structure: time 0.01148/0.5778, allocations: 4.079 MB / 0.7132 GB, free: 5.043 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.5779, allocations: 8.031 kB / 0.7132 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00627/0.5841, allocations: 0.8126 MB / 0.714 GB, free: 4.219 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2649/0.8491, allocations: 6.668 MB / 0.7205 GB, free: 54.98 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.8493, allocations: 175.4 kB / 0.7206 GB, free: 54.97 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004212/0.8497, allocations: 202.8 kB / 0.7208 GB, free: 54.97 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00781/0.8576, allocations: 3.48 MB / 0.7242 GB, free: 54.54 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.8577, allocations: 10.98 kB / 0.7242 GB, free: 54.54 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002508/0.8579, allocations: 88.02 kB / 0.7243 GB, free: 54.54 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002769/0.8582, allocations: 192 kB / 0.7245 GB, free: 54.53 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00807/0.8663, allocations: 3.222 MB / 0.7276 GB, free: 54.52 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01714/0.8835, allocations: 15.09 MB / 0.7424 GB, free: 45.54 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005371/0.8889, allocations: 2.256 MB / 0.7446 GB, free: 45.52 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.8906, allocations: 1.144 MB / 0.7457 GB, free: 45.49 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04484/0.9355, allocations: 24.68 MB / 0.7698 GB, free: 29.73 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004473/0.94, allocations: 1.606 MB / 0.7714 GB, free: 29.64 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 5.43e-06/0.94, allocations: 3.594 kB / 0.7714 GB, free: 29.64 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.01895/0.959, allocations: 8.031 MB / 0.7792 GB, free: 28.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.9591, allocations: 227.3 kB / 0.7794 GB, free: 28.48 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.9608, allocations: 1.635 MB / 0.781 GB, free: 28.29 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001602/0.961, allocations: 56.84 kB / 0.7811 GB, free: 28.26 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005655/0.9616, allocations: 0.9896 MB / 0.7821 GB, free: 27.86 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003667/0.962, allocations: 0.5764 MB / 0.7826 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.9625, allocations: 438.4 kB / 0.783 GB, free: 27.46 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.444e-05/0.9626, allocations: 308.9 kB / 0.7833 GB, free: 27.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/0.9645, allocations: 1.162 MB / 0.7845 GB, free: 26.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002054/0.9665, allocations: 1.654 MB / 0.7861 GB, free: 25.54 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003841/0.9704, allocations: 2.882 MB / 0.7889 GB, free: 23.75 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.9704, allocations: 5.125 kB / 0.7889 GB, free: 23.74 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006343/0.9767, allocations: 3.973 MB / 0.7928 GB, free: 21.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.199e-05/0.9768, allocations: 45.2 kB / 0.7928 GB, free: 21.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.9768, allocations: 16 kB / 0.7928 GB, free: 21.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0154/0.9923, allocations: 3.143 MB / 0.7959 GB, free: 18.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.9935, allocations: 318.1 kB / 0.7962 GB, free: 18.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004947/0.9984, allocations: 3.443 MB / 0.7996 GB, free: 16.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001858/1, allocations: 112 kB / 0.7997 GB, free: 16.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001861/1.001, allocations: 99.72 kB / 0.7998 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00251/1.003, allocations: 1.595 MB / 0.8013 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001981/1.005, allocations: 1.6 MB / 0.8029 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003812/1.009, allocations: 2.768 MB / 0.8056 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.546e-06/1.009, allocations: 4 kB / 0.8056 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.006737/1.016, allocations: 3.75 MB / 0.8093 GB, free: 8.816 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/1.016, allocations: 42.78 kB / 0.8093 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.456e-05/1.016, allocations: 16 kB / 0.8093 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006512/1.022, allocations: 1.716 MB / 0.811 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/1.024, allocations: 362.2 kB / 0.8113 GB, free: 6.984 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003605/1.027, allocations: 2.748 MB / 0.814 GB, free: 4.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001779/1.029, allocations: 107.4 kB / 0.8141 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000186/1.029, allocations: 99.41 kB / 0.8142 GB, free: 4.793 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 23 (pipe3.state_a.phase,pipe1.state_a.phase,simpleGenericOrifice.state_b.phase,simpleGenericOrifice.state_a.phase,valve.state_b.phase,valve.state_a.phase,pipe3.statesFM[2].phase,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe2.statesFM[2].phase,pipe2.statesFM[1].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition1,pipe3.state_b.phase,pipe2.state_b.phase,pipe2.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 160 * Array equations: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,86)} Notification: Performance of prepare postOptimizeDAE: time 0.0005542/1.03, allocations: 332.7 kB / 0.8145 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003847/1.03, allocations: 209.5 kB / 0.8147 GB, free: 4.328 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009312/1.04, allocations: 7.673 MB / 0.8222 GB, free: 12.72 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008566/1.048, allocations: 6.62 MB / 0.8287 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/1.048, allocations: 0 / 0.8287 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/1.05, allocations: 0.6367 MB / 0.8293 GB, free: 5.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004141/1.05, allocations: 87.41 kB / 0.8294 GB, free: 5.199 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/1.051, allocations: 127.9 kB / 0.8295 GB, free: 5.074 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003029/1.052, allocations: 149.8 kB / 0.8297 GB, free: 4.93 MB / 0.5762 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007673/1.059, allocations: 4.807 MB / 0.8344 GB, free: 56 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009436/1.069, allocations: 6.915 MB / 0.8411 GB, free: 9.016 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00305/1.072, allocations: 2.232 MB / 0.8433 GB, free: 6.781 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001869/1.074, allocations: 1.297 MB / 0.8446 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of Backend: time 7.12e-07/1.074, allocations: 0 / 0.8446 GB, free: 5.465 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01606/1.09, allocations: 6.21 MB / 0.8506 GB, free: 15.85 MB / 0.6075 GB Notification: Performance of SimCode: time 0.00882/1.099, allocations: 6.367 MB / 0.8568 GB, free: 9.48 MB / 0.6075 GB Notification: Performance of Templates: time 0.1449/1.244, allocations: 106.7 MB / 0.961 GB, free: 15.4 MB / 0.7169 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes12/SeriesPipes12.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches