Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 107.8 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001166/0.001166, allocations: 207.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.327/1.327, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2101/0.2101, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 75.88 kB / 482 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.295, allocations: 62.44 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2): time 0.06337/0.3584, allocations: 65.95 MB / 0.5961 GB, free: 15.74 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04021/0.3986, allocations: 29.68 MB / 0.625 GB, free: 1.957 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00169/0.4004, allocations: 63.62 kB / 0.6251 GB, free: 1.895 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.4029, allocations: 0.835 MB / 0.6259 GB, free: 1.055 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01759/0.4205, allocations: 6.577 MB / 0.6323 GB, free: 10.47 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0163/0.4368, allocations: 7.171 MB / 0.6394 GB, free: 3.309 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.00534/0.4422, allocations: 4.379 MB / 0.6436 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001648/0.4438, allocations: 0.9893 MB / 0.6446 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003149/0.447, allocations: 1.76 MB / 0.6463 GB, free: 12.13 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01539/0.4624, allocations: 7.984 MB / 0.6541 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004962/0.4629, allocations: 144 kB / 0.6542 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01826/0.4812, allocations: 9.587 MB / 0.6636 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0009577/0.4821, allocations: 0.5999 MB / 0.6642 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.4839, allocations: 0.9176 MB / 0.6651 GB, free: 8.777 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.4988, allocations: 7.706 MB / 0.6726 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4989, allocations: 0 / 0.6726 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.163e-06/0.4989, allocations: 0 / 0.6726 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.093e-05/0.4989, allocations: 0 / 0.6726 GB, free: 1.055 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.007653/0.5066, allocations: 2.971 MB / 0.6755 GB, free: 14.02 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.5066, allocations: 8.031 kB / 0.6755 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003777/0.5104, allocations: 0.5287 MB / 0.676 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007341/0.5178, allocations: 4.493 MB / 0.6804 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.5179, allocations: 110.4 kB / 0.6805 GB, free: 8.824 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002798/0.5182, allocations: 131.8 kB / 0.6807 GB, free: 8.695 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004725/0.5229, allocations: 2.216 MB / 0.6828 GB, free: 6.363 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.369e-05/0.523, allocations: 3.938 kB / 0.6828 GB, free: 6.359 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001558/0.5231, allocations: 63.95 kB / 0.6829 GB, free: 6.297 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.5233, allocations: 118.2 kB / 0.683 GB, free: 6.18 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004675/0.528, allocations: 2.007 MB / 0.685 GB, free: 4.164 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.01214/0.5401, allocations: 9.694 MB / 0.6944 GB, free: 9.648 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003542/0.5437, allocations: 1.363 MB / 0.6958 GB, free: 8.277 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001186/0.5449, allocations: 0.679 MB / 0.6964 GB, free: 7.598 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2661/0.811, allocations: 27.21 MB / 0.723 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002727/0.8138, allocations: 1.02 MB / 0.724 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=96): time 3.537e-06/0.8138, allocations: 1.375 kB / 0.724 GB, free: 167.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=104): time 0.01234/0.8261, allocations: 5.055 MB / 0.7289 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.361e-05/0.8262, allocations: 222.3 kB / 0.7291 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001303/0.8275, allocations: 1.135 MB / 0.7303 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.044e-05/0.8276, allocations: 47.08 kB / 0.7303 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.828, allocations: 0.6631 MB / 0.7309 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.8282, allocations: 360.7 kB / 0.7313 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003899/0.8286, allocations: 281.6 kB / 0.7316 GB, free: 164.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 7.087e-05/0.8287, allocations: 356 kB / 0.7319 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00118/0.8299, allocations: 0.693 MB / 0.7326 GB, free: 163.5 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001266/0.8312, allocations: 1.012 MB / 0.7336 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0023/0.8335, allocations: 1.73 MB / 0.7353 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.8335, allocations: 3.969 kB / 0.7353 GB, free: 161.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003254/0.8368, allocations: 2.037 MB / 0.7372 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/0.8368, allocations: 41.53 kB / 0.7373 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.8369, allocations: 14.81 kB / 0.7373 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000491/0.8374, allocations: 135.2 kB / 0.7374 GB, free: 160.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.8386, allocations: 319 kB / 0.7377 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005334/0.8391, allocations: 1.252 MB / 0.739 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009576/0.8401, allocations: 63.55 kB / 0.739 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.8402, allocations: 67.03 kB / 0.7391 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00144/0.8416, allocations: 0.9921 MB / 0.74 GB, free: 158.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001127/0.8428, allocations: 0.9739 MB / 0.741 GB, free: 158 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002163/0.8449, allocations: 1.664 MB / 0.7426 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.51e-06/0.845, allocations: 3 kB / 0.7426 GB, free: 156.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003086/0.8481, allocations: 1.965 MB / 0.7445 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.8481, allocations: 43.02 kB / 0.7446 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.8481, allocations: 11.73 kB / 0.7446 GB, free: 155.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003968/0.8485, allocations: 133.8 kB / 0.7447 GB, free: 155.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00117/0.8497, allocations: 314.1 kB / 0.745 GB, free: 155.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005186/0.8502, allocations: 1.257 MB / 0.7463 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008938/0.8511, allocations: 69.67 kB / 0.7463 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.381e-05/0.8512, allocations: 63.36 kB / 0.7464 GB, free: 154.5 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.0003372/0.8516, allocations: 297.3 kB / 0.7467 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000205/0.8518, allocations: 135.3 kB / 0.7468 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004721/0.8565, allocations: 4.703 MB / 0.7514 GB, free: 149.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003664/0.8602, allocations: 3.963 MB / 0.7553 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.8602, allocations: 0 / 0.7553 GB, free: 145.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005042/0.8607, allocations: 433.9 kB / 0.7557 GB, free: 145 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.861, allocations: 59.53 kB / 0.7557 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007664/0.8617, allocations: 83.72 kB / 0.7558 GB, free: 144.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.8619, allocations: 88.88 kB / 0.7559 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003608/0.8655, allocations: 2.958 MB / 0.7588 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004332/0.8699, allocations: 4.264 MB / 0.7629 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001239/0.8711, allocations: 1.337 MB / 0.7642 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0009881/0.8721, allocations: 0.9713 MB / 0.7652 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of Backend: time 2.7e-07/0.8721, allocations: 0 / 0.7652 GB, free: 135.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.009813/0.8819, allocations: 4.489 MB / 0.7696 GB, free: 131.1 MB / 0.5606 GB Notification: Performance of SimCode: time 0.004885/0.8868, allocations: 4.378 MB / 0.7739 GB, free: 126.7 MB / 0.5606 GB Notification: Performance of Templates: time 0.08397/0.9708, allocations: 80.11 MB / 0.8521 GB, free: 46.81 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches