Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.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.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_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 114.9 kB / 18.46 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.001439/0.001439, allocations: 206.8 kB / 19.41 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.332/1.332, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2055/0.2055, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001433, allocations: 79.86 kB / 482 MB, free: 4.051 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2919, allocations: 62.43 MB / 0.5317 GB, free: 13.82 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.08226/0.3742, allocations: 92.01 MB / 0.6215 GB, free: 5.566 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04586/0.4201, allocations: 37.3 MB / 0.6579 GB, free: 164 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003867/0.424, allocations: 87.56 kB / 0.658 GB, free: 76 kB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.005259/0.4293, allocations: 1.169 MB / 0.6592 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.02171/0.4511, allocations: 7.973 MB / 0.667 GB, free: 6.914 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.02166/0.4728, allocations: 9.094 MB / 0.6758 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.009479/0.4823, allocations: 6.632 MB / 0.6823 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002801/0.4851, allocations: 1.504 MB / 0.6838 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005215/0.4904, allocations: 2.617 MB / 0.6863 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02625/0.5166, allocations: 13.55 MB / 0.6996 GB, free: 5.277 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.00103/0.5177, allocations: 216 kB / 0.6998 GB, free: 5.066 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02147/0.5392, allocations: 10.48 MB / 0.71 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001565/0.5408, allocations: 0.9387 MB / 0.7109 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002739/0.5435, allocations: 1.408 MB / 0.7123 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.2997/0.8433, allocations: 9.5 MB / 0.7216 GB, free: 43.2 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.8433, allocations: 0.5 kB / 0.7216 GB, free: 43.2 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.325e-06/0.8433, allocations: 0 / 0.7216 GB, free: 43.2 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001063/0.8435, allocations: 3.5 kB / 0.7216 GB, free: 43.2 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.01089/0.8544, allocations: 4.071 MB / 0.7256 GB, free: 41.74 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.8544, allocations: 12.92 kB / 0.7256 GB, free: 41.74 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005837/0.8603, allocations: 0.8119 MB / 0.7264 GB, free: 41.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0106/0.8709, allocations: 6.683 MB / 0.7329 GB, free: 41.04 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001454/0.871, allocations: 179 kB / 0.7331 GB, free: 41.03 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003599/0.8714, allocations: 202.1 kB / 0.7333 GB, free: 41.03 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006698/0.8781, allocations: 3.483 MB / 0.7367 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.83e-05/0.8782, allocations: 9.188 kB / 0.7367 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002309/0.8784, allocations: 82.84 kB / 0.7367 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002337/0.8787, allocations: 190.4 kB / 0.7369 GB, free: 40.57 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006553/0.8852, allocations: 3.221 MB / 0.7401 GB, free: 40.55 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.01533/0.9006, allocations: 15.11 MB / 0.7548 GB, free: 31.48 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.9056, allocations: 2.252 MB / 0.757 GB, free: 31.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001628/0.9072, allocations: 1.141 MB / 0.7581 GB, free: 31.43 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04344/0.9507, allocations: 27.26 MB / 0.7848 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004294/0.955, allocations: 1.605 MB / 0.7863 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 5.551e-06/0.955, allocations: 7.969 kB / 0.7863 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.01788/0.9729, allocations: 8.018 MB / 0.7942 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.668e-05/0.973, allocations: 232.2 kB / 0.7944 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001759/0.9748, allocations: 1.63 MB / 0.796 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001678/0.975, allocations: 60.52 kB / 0.796 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005642/0.9755, allocations: 0.9854 MB / 0.797 GB, free: 9.324 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.9759, allocations: 0.5825 MB / 0.7976 GB, free: 8.828 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005649/0.9765, allocations: 432.8 kB / 0.798 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0003064/0.9768, allocations: 305.1 kB / 0.7983 GB, free: 24.25 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001766/0.9785, allocations: 1.163 MB / 0.7994 GB, free: 23.46 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001993/0.9806, allocations: 1.654 MB / 0.801 GB, free: 22.03 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003791/0.9844, allocations: 2.886 MB / 0.8038 GB, free: 19.93 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.9844, allocations: 4 kB / 0.8038 GB, free: 19.92 MB / 0.5762 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006011/0.9904, allocations: 3.975 MB / 0.8077 GB, free: 17.22 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.829e-05/0.9905, allocations: 44.22 kB / 0.8078 GB, free: 17.17 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/0.9905, allocations: 12 kB / 0.8078 GB, free: 17.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01526/1.006, allocations: 3.151 MB / 0.8109 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/1.007, allocations: 322.5 kB / 0.8112 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/1.013, allocations: 3.441 MB / 0.8145 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001826/1.015, allocations: 106.7 kB / 0.8146 GB, free: 11.53 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002465/1.015, allocations: 102.7 kB / 0.8147 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002891/1.018, allocations: 1.602 MB / 0.8163 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002331/1.02, allocations: 1.589 MB / 0.8178 GB, free: 8.973 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004241/1.024, allocations: 2.771 MB / 0.8205 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.588e-06/1.024, allocations: 4 kB / 0.8205 GB, free: 6.91 MB / 0.5762 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.00727/1.032, allocations: 3.743 MB / 0.8242 GB, free: 4.293 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.718e-05/1.032, allocations: 45.38 kB / 0.8242 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.471e-05/1.032, allocations: 25.08 kB / 0.8243 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006972/1.039, allocations: 1.713 MB / 0.8259 GB, free: 2.77 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/1.04, allocations: 357.3 kB / 0.8263 GB, free: 2.449 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/1.044, allocations: 2.747 MB / 0.829 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001951/1.046, allocations: 107.9 kB / 0.8291 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003426/1.047, allocations: 102.5 kB / 0.8292 GB, free: 15.49 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 (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.0008582/1.048, allocations: 344.6 kB / 0.8295 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005949/1.048, allocations: 201.6 kB / 0.8297 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01051/1.059, allocations: 7.669 MB / 0.8372 GB, free: 7.203 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008149/1.067, allocations: 6.617 MB / 0.8436 GB, free: 440 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.257e-06/1.067, allocations: 0 / 0.8436 GB, free: 440 kB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001231/1.068, allocations: 0.6426 MB / 0.8443 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000545/1.069, allocations: 80.61 kB / 0.8443 GB, free: 15.69 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001458/1.07, allocations: 131.8 kB / 0.8445 GB, free: 15.56 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003512/1.07, allocations: 153.8 kB / 0.8446 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007639/1.078, allocations: 4.804 MB / 0.8493 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009129/1.087, allocations: 6.914 MB / 0.8561 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002648/1.09, allocations: 2.232 MB / 0.8582 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001806/1.092, allocations: 1.293 MB / 0.8595 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of Backend: time 4.81e-07/1.092, allocations: 0 / 0.8595 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01897/1.111, allocations: 6.229 MB / 0.8656 GB, free: 10.04 MB / 0.6231 GB Notification: Performance of SimCode: time 0.01062/1.121, allocations: 6.36 MB / 0.8718 GB, free: 3.672 MB / 0.6231 GB Notification: Performance of Templates: time 0.156/1.277, allocations: 108.4 MB / 0.9777 GB, free: 7.805 MB / 0.7325 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches