Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 112.9 kB / 18.45 MB, free: 4.594 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.001188/0.001188, allocations: 183 kB / 19.39 MB, free: 3.672 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.337/1.337, allocations: 222.9 MB / 243.1 MB, free: 15.08 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.1983/0.1983, allocations: 44.18 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 63.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2931, allocations: 60.82 MB / 0.5196 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.06155/0.3547, allocations: 65.74 MB / 0.5838 GB, free: 10.14 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03727/0.392, allocations: 29.65 MB / 0.6127 GB, free: 12.4 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001872/0.3939, allocations: 59.69 kB / 0.6128 GB, free: 12.34 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002461/0.3964, allocations: 0.8505 MB / 0.6136 GB, free: 11.48 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01818/0.4146, allocations: 6.59 MB / 0.62 GB, free: 4.887 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01693/0.4316, allocations: 7.185 MB / 0.6271 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.005757/0.4373, allocations: 4.378 MB / 0.6313 GB, free: 9.316 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001737/0.4391, allocations: 0.9971 MB / 0.6323 GB, free: 8.293 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003524/0.4426, allocations: 1.752 MB / 0.634 GB, free: 6.535 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01554/0.4582, allocations: 7.979 MB / 0.6418 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000506/0.4587, allocations: 140 kB / 0.6419 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01747/0.4762, allocations: 9.567 MB / 0.6513 GB, free: 4.73 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0009222/0.4771, allocations: 0.5921 MB / 0.6519 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001524/0.4787, allocations: 0.9138 MB / 0.6528 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.01642/0.4951, allocations: 7.71 MB / 0.6603 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.4952, allocations: 0 / 0.6603 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.254e-06/0.4952, allocations: 0 / 0.6603 GB, free: 11.49 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 8.273e-05/0.4953, allocations: 0 / 0.6603 GB, free: 11.49 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.008215/0.5035, allocations: 3.057 MB / 0.6633 GB, free: 8.359 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.5035, allocations: 8.031 kB / 0.6633 GB, free: 8.352 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003872/0.5074, allocations: 0.5336 MB / 0.6638 GB, free: 7.816 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007564/0.515, allocations: 4.506 MB / 0.6682 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.5151, allocations: 118.4 kB / 0.6683 GB, free: 3.141 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/0.5154, allocations: 131.9 kB / 0.6684 GB, free: 3.012 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005043/0.5205, allocations: 2.216 MB / 0.6706 GB, free: 0.6797 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.5206, allocations: 7.938 kB / 0.6706 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/0.5207, allocations: 47.98 kB / 0.6707 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.5209, allocations: 114.2 kB / 0.6708 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004924/0.5258, allocations: 2.015 MB / 0.6727 GB, free: 14.48 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.01368/0.5395, allocations: 9.719 MB / 0.6822 GB, free: 3.949 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003953/0.5435, allocations: 1.354 MB / 0.6835 GB, free: 2.586 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.5448, allocations: 0.6791 MB / 0.6842 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05246/0.5973, allocations: 24.67 MB / 0.7083 GB, free: 6.281 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003129/0.6005, allocations: 1.021 MB / 0.7093 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=96): time 4.158e-06/0.6005, allocations: 0 / 0.7093 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of matching and sorting (n=104): time 0.01371/0.6142, allocations: 5.063 MB / 0.7142 GB, free: 104 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2194/0.8337, allocations: 221.8 kB / 0.7145 GB, free: 179.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00178/0.8355, allocations: 1.137 MB / 0.7156 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0002268/0.8357, allocations: 45.36 kB / 0.7156 GB, free: 179.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.8361, allocations: 0.6761 MB / 0.7163 GB, free: 179.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.8364, allocations: 376.6 kB / 0.7166 GB, free: 179.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.8368, allocations: 274.5 kB / 0.7169 GB, free: 179.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.798e-05/0.8369, allocations: 359.8 kB / 0.7172 GB, free: 178.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001315/0.8382, allocations: 0.6895 MB / 0.7179 GB, free: 178.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.8397, allocations: 1.01 MB / 0.7189 GB, free: 178 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002641/0.8423, allocations: 1.725 MB / 0.7206 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.8424, allocations: 5.641 kB / 0.7206 GB, free: 177.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003598/0.846, allocations: 2.056 MB / 0.7226 GB, free: 176.3 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.931e-05/0.846, allocations: 37.39 kB / 0.7226 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.226e-05/0.846, allocations: 12.14 kB / 0.7226 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004538/0.8465, allocations: 133.5 kB / 0.7228 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/0.8478, allocations: 319 kB / 0.7231 GB, free: 176.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005674/0.8484, allocations: 1.251 MB / 0.7243 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009595/0.8494, allocations: 64.7 kB / 0.7244 GB, free: 175 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001147/0.8495, allocations: 67.72 kB / 0.7244 GB, free: 175 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001554/0.851, allocations: 0.9916 MB / 0.7254 GB, free: 174.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001295/0.8524, allocations: 0.9751 MB / 0.7263 GB, free: 174 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002437/0.8548, allocations: 1.667 MB / 0.728 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.041e-06/0.8548, allocations: 2.094 kB / 0.728 GB, free: 173.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.00351/0.8583, allocations: 1.975 MB / 0.7299 GB, free: 172.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.19e-05/0.8584, allocations: 37.27 kB / 0.7299 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.8584, allocations: 14.86 kB / 0.73 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000406/0.8588, allocations: 134.4 kB / 0.7301 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.86, allocations: 320.7 kB / 0.7304 GB, free: 172.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005495/0.8606, allocations: 1.245 MB / 0.7316 GB, free: 171.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009662/0.8616, allocations: 74.2 kB / 0.7317 GB, free: 171.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.8617, allocations: 61.94 kB / 0.7317 GB, free: 171.1 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,pipe1.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveOpening1.nextEventScaled,valveOpening1.nextEvent,$PRE.valveOpening1.nextEvent,valveOpening1.last,valveOpening1.b,valveOpening1.a,pipe3.statesFM[2].phase,sink.medium.phase,pipe1.statesFM[2].phase,source.medium.phase,$whenCondition1,pipe3.state_b.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 (153): * Single equations (assignments): 148 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003609/0.8621, allocations: 295.2 kB / 0.732 GB, free: 170.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002266/0.8623, allocations: 147.5 kB / 0.7322 GB, free: 170.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005254/0.8676, allocations: 4.704 MB / 0.7367 GB, free: 168.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003865/0.8714, allocations: 3.961 MB / 0.7406 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.8715, allocations: 2.844 kB / 0.7406 GB, free: 166.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006139/0.8721, allocations: 448.2 kB / 0.741 GB, free: 166 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002548/0.8724, allocations: 67.67 kB / 0.7411 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000793/0.8732, allocations: 76.75 kB / 0.7412 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.8733, allocations: 88.28 kB / 0.7413 GB, free: 165.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003856/0.8772, allocations: 2.968 MB / 0.7442 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.00462/0.8819, allocations: 4.271 MB / 0.7483 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001405/0.8833, allocations: 1.341 MB / 0.7496 GB, free: 159.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001181/0.8845, allocations: 0.9713 MB / 0.7506 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of Backend: time 3.61e-07/0.8845, allocations: 0 / 0.7506 GB, free: 158.5 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01106/0.8956, allocations: 4.499 MB / 0.755 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of SimCode: time 0.00503/0.9006, allocations: 4.448 MB / 0.7593 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.08025/0.9809, allocations: 79.11 MB / 0.8366 GB, free: 71.3 MB / 0.5606 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches