Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SeriesPipes1,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.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1,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.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001523/0.001523, allocations: 114.7 kB / 17.09 MB, free: 5.961 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.001679/0.001679, allocations: 194 kB / 18.02 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2008/0.2008, allocations: 43.52 MB / 314.8 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 69.45 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09467/0.0961, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1): time 0.2749/0.371, allocations: 91.74 MB / 0.5781 GB, free: 6.691 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.05204/0.4231, allocations: 37.28 MB / 0.6145 GB, free: 9.539 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003005/0.4262, allocations: 83.56 kB / 0.6146 GB, free: 9.457 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004198/0.4304, allocations: 1.169 MB / 0.6158 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02689/0.4573, allocations: 8.007 MB / 0.6236 GB, free: 252 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02539/0.4827, allocations: 9.07 MB / 0.6324 GB, free: 7.152 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008303/0.4911, allocations: 6.636 MB / 0.6389 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002394/0.4935, allocations: 1.509 MB / 0.6404 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004468/0.498, allocations: 2.609 MB / 0.6429 GB, free: 12.35 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02807/0.5261, allocations: 13.54 MB / 0.6562 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0008267/0.5269, allocations: 216 kB / 0.6564 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01969/0.5466, allocations: 10.44 MB / 0.6666 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001411/0.5481, allocations: 0.9349 MB / 0.6675 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.55, allocations: 1.4 MB / 0.6688 GB, free: 1.609 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01917/0.5691, allocations: 9.482 MB / 0.6781 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.5692, allocations: 0 / 0.6781 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.463e-06/0.5692, allocations: 0 / 0.6781 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.471e-05/0.5692, allocations: 0 / 0.6781 GB, free: 8.105 MB / 0.5137 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.009418/0.5787, allocations: 4.067 MB / 0.6821 GB, free: 3.969 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.5787, allocations: 12.03 kB / 0.6821 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005677/0.5844, allocations: 0.8164 MB / 0.6829 GB, free: 3.137 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.595, allocations: 6.678 MB / 0.6894 GB, free: 12.39 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.5952, allocations: 175.7 kB / 0.6896 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003903/0.5956, allocations: 195.9 kB / 0.6898 GB, free: 12.03 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00748/0.6031, allocations: 3.484 MB / 0.6932 GB, free: 8.387 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.906e-05/0.6032, allocations: 11.94 kB / 0.6932 GB, free: 8.375 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.6034, allocations: 83.97 kB / 0.6932 GB, free: 8.293 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000229/0.6037, allocations: 179.5 kB / 0.6934 GB, free: 8.117 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007978/0.6116, allocations: 3.226 MB / 0.6966 GB, free: 4.887 MB / 0.5294 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.02011/0.6318, allocations: 15.1 MB / 0.7113 GB, free: 4.523 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005826/0.6376, allocations: 2.263 MB / 0.7135 GB, free: 2.258 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001985/0.6396, allocations: 1.129 MB / 0.7146 GB, free: 1.129 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05071/0.6904, allocations: 24.68 MB / 0.7387 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004927/0.6953, allocations: 1.614 MB / 0.7403 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=155): time 4.319e-06/0.6954, allocations: 0 / 0.7403 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=171): time 0.02465/0.72, allocations: 8.64 MB / 0.7487 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.7202, allocations: 230.9 kB / 0.749 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002268/0.7224, allocations: 1.632 MB / 0.7506 GB, free: 9.242 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001889/0.7226, allocations: 57.7 kB / 0.7506 GB, free: 9.18 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007972/0.7234, allocations: 0.9892 MB / 0.7516 GB, free: 8.18 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005227/0.724, allocations: 0.5854 MB / 0.7522 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000704/0.7247, allocations: 435.4 kB / 0.7526 GB, free: 7.152 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.126e-05/0.7248, allocations: 305.1 kB / 0.7529 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.727, allocations: 1.161 MB / 0.754 GB, free: 5.68 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002579/0.7296, allocations: 1.656 MB / 0.7556 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004744/0.7343, allocations: 2.876 MB / 0.7584 GB, free: 0.7383 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.327e-06/0.7344, allocations: 4 kB / 0.7584 GB, free: 0.7344 MB / 0.5919 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.1985/0.9329, allocations: 3.346 MB / 0.7617 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.302e-05/0.9329, allocations: 44.59 kB / 0.7617 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.994e-05/0.933, allocations: 19.31 kB / 0.7617 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008659/0.9339, allocations: 254.2 kB / 0.762 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002134/0.936, allocations: 0.5108 MB / 0.7625 GB, free: 216.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.9372, allocations: 2.501 MB / 0.7649 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001667/0.9389, allocations: 104.8 kB / 0.765 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001975/0.9391, allocations: 102.5 kB / 0.7651 GB, free: 214.5 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002874/0.942, allocations: 1.594 MB / 0.7667 GB, free: 214.4 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00229/0.9443, allocations: 1.592 MB / 0.7682 GB, free: 213.9 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004633/0.949, allocations: 2.774 MB / 0.771 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.306e-05/0.949, allocations: 3.938 kB / 0.771 GB, free: 212.5 MB / 0.5919 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.006777/0.9558, allocations: 3.234 MB / 0.7741 GB, free: 211.4 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.163e-05/0.9558, allocations: 45.06 kB / 0.7742 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.9559, allocations: 15.58 kB / 0.7742 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008165/0.9567, allocations: 259.8 kB / 0.7744 GB, free: 211.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/0.9588, allocations: 0.5001 MB / 0.7749 GB, free: 211.2 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.9599, allocations: 2.502 MB / 0.7774 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.9616, allocations: 105.3 kB / 0.7775 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002092/0.9618, allocations: 100.2 kB / 0.7775 GB, free: 208.9 MB / 0.5919 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 (253): * Single equations (assignments): 246 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,1), (1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005963/0.9624, allocations: 351.5 kB / 0.7779 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004236/0.9628, allocations: 205.3 kB / 0.7781 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/0.9732, allocations: 7.673 MB / 0.7856 GB, free: 205.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007061/0.9803, allocations: 6.627 MB / 0.792 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.9804, allocations: 0 / 0.792 GB, free: 202.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/0.9815, allocations: 0.6342 MB / 0.7927 GB, free: 202 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003761/0.9819, allocations: 82.81 kB / 0.7927 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.9831, allocations: 124.5 kB / 0.7929 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002783/0.9834, allocations: 152.8 kB / 0.793 GB, free: 201.9 MB / 0.5919 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006639/0.9901, allocations: 4.809 MB / 0.7977 GB, free: 200 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007716/0.9978, allocations: 6.91 MB / 0.8044 GB, free: 195.7 MB / 0.5919 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002259/1, allocations: 2.227 MB / 0.8066 GB, free: 193.5 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001503/1.002, allocations: 1.297 MB / 0.8079 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of Backend: time 5.71e-07/1.002, allocations: 1.219 kB / 0.8079 GB, free: 192.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01507/1.017, allocations: 6.189 MB / 0.8139 GB, free: 186.6 MB / 0.5919 GB Notification: Performance of SimCode: time 0.008001/1.025, allocations: 6.38 MB / 0.8202 GB, free: 180.3 MB / 0.5919 GB Notification: Performance of Templates: time 0.1082/1.133, allocations: 101.4 MB / 0.9192 GB, free: 78.87 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes1/SeriesPipes1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches