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.001095/0.001101, allocations: 111 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001193/0.001193, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2106/0.2106, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 75.88 kB / 482 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2852, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes12): time 0.08339/0.3686, allocations: 92 MB / 0.6215 GB, free: 5.441 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04646/0.4151, allocations: 37.31 MB / 0.658 GB, free: 24 kB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002022/0.4172, allocations: 87.61 kB / 0.658 GB, free: 15.93 MB / 0.5138 GB Notification: Performance of NFTyping.typeComponents: time 0.002619/0.4198, allocations: 1.173 MB / 0.6592 GB, free: 14.76 MB / 0.5138 GB Notification: Performance of NFTyping.typeBindings: time 0.01869/0.4385, allocations: 8.025 MB / 0.667 GB, free: 6.723 MB / 0.5138 GB Notification: Performance of NFTyping.typeClassSections: time 0.02124/0.4598, allocations: 9.101 MB / 0.6759 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008262/0.4681, allocations: 6.648 MB / 0.6824 GB, free: 6.957 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002712/0.4708, allocations: 1.5 MB / 0.6839 GB, free: 5.434 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005109/0.4759, allocations: 2.617 MB / 0.6864 GB, free: 2.809 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0291/0.5051, allocations: 13.55 MB / 0.6996 GB, free: 5.066 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0008874/0.506, allocations: 216 kB / 0.6999 GB, free: 4.855 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01984/0.5258, allocations: 10.49 MB / 0.7101 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.5273, allocations: 0.9388 MB / 0.711 GB, free: 9.41 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002415/0.5298, allocations: 1.4 MB / 0.7124 GB, free: 8.004 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.2872/0.817, allocations: 9.503 MB / 0.7217 GB, free: 43.21 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.817, allocations: 1.25 kB / 0.7217 GB, free: 43.21 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.817, allocations: 0 / 0.7217 GB, free: 43.21 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001028/0.8171, allocations: 2.281 kB / 0.7217 GB, free: 43.21 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.01107/0.8282, allocations: 4.08 MB / 0.7256 GB, free: 41.74 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.8283, allocations: 9.031 kB / 0.7257 GB, free: 41.74 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006115/0.8344, allocations: 0.8159 MB / 0.7265 GB, free: 41.61 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01122/0.8456, allocations: 6.668 MB / 0.733 GB, free: 41.04 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.8458, allocations: 180.2 kB / 0.7331 GB, free: 41.04 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003991/0.8462, allocations: 201.3 kB / 0.7333 GB, free: 41.04 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007241/0.8535, allocations: 3.487 MB / 0.7367 GB, free: 40.58 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.297e-05/0.8536, allocations: 3.094 kB / 0.7367 GB, free: 40.58 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002467/0.8538, allocations: 84.75 kB / 0.7368 GB, free: 40.58 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002322/0.8541, allocations: 185.4 kB / 0.737 GB, free: 40.58 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007022/0.8611, allocations: 3.234 MB / 0.7402 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.0174/0.8785, allocations: 15.1 MB / 0.7549 GB, free: 31.49 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005154/0.8837, allocations: 2.258 MB / 0.7571 GB, free: 31.45 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001638/0.8853, allocations: 1.14 MB / 0.7582 GB, free: 31.44 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04608/0.9314, allocations: 27.26 MB / 0.7848 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004357/0.9358, allocations: 1.606 MB / 0.7864 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 4.258e-06/0.9359, allocations: 1.969 kB / 0.7864 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.01812/0.954, allocations: 8.028 MB / 0.7942 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.9541, allocations: 226.9 kB / 0.7945 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.9558, allocations: 1.632 MB / 0.796 GB, free: 9.941 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001894/0.956, allocations: 56.2 kB / 0.7961 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000543/0.9566, allocations: 0.9866 MB / 0.7971 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003614/0.9569, allocations: 0.5885 MB / 0.7976 GB, free: 8.781 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005822/0.9575, allocations: 432.7 kB / 0.7981 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002373/0.9578, allocations: 305.1 kB / 0.7983 GB, free: 24.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001836/0.9596, allocations: 1.159 MB / 0.7995 GB, free: 23.41 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002033/0.9617, allocations: 1.658 MB / 0.8011 GB, free: 21.98 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003897/0.9656, allocations: 2.888 MB / 0.8039 GB, free: 19.88 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.705e-06/0.9656, allocations: 4 kB / 0.8039 GB, free: 19.87 MB / 0.5763 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006255/0.9719, allocations: 3.971 MB / 0.8078 GB, free: 17.17 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 4.952e-05/0.9719, allocations: 43.73 kB / 0.8078 GB, free: 17.12 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.584e-05/0.972, allocations: 12.88 kB / 0.8079 GB, free: 17.11 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01595/0.9879, allocations: 3.15 MB / 0.8109 GB, free: 14.32 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.9892, allocations: 319.5 kB / 0.8112 GB, free: 14.04 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00578/0.995, allocations: 3.443 MB / 0.8146 GB, free: 11.55 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001914/0.997, allocations: 103.8 kB / 0.8147 GB, free: 11.48 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002176/0.9972, allocations: 105.3 kB / 0.8148 GB, free: 11.4 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002891/1, allocations: 1.596 MB / 0.8164 GB, free: 10.32 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002352/1.002, allocations: 1.594 MB / 0.8179 GB, free: 8.93 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004417/1.007, allocations: 2.775 MB / 0.8206 GB, free: 6.867 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.003e-05/1.007, allocations: 4 kB / 0.8206 GB, free: 6.863 MB / 0.5763 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.007329/1.014, allocations: 3.751 MB / 0.8243 GB, free: 4.242 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/1.014, allocations: 45.38 kB / 0.8243 GB, free: 4.195 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/1.014, allocations: 19.94 kB / 0.8243 GB, free: 4.176 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00709/1.021, allocations: 1.718 MB / 0.826 GB, free: 2.68 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001492/1.023, allocations: 352.2 kB / 0.8264 GB, free: 2.355 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004345/1.027, allocations: 2.749 MB / 0.829 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001948/1.029, allocations: 99.92 kB / 0.8291 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000214/1.029, allocations: 104 kB / 0.8292 GB, free: 15.41 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.000715/1.03, allocations: 350.1 kB / 0.8296 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004868/1.031, allocations: 201.6 kB / 0.8298 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/1.041, allocations: 7.67 MB / 0.8373 GB, free: 7.113 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008526/1.05, allocations: 6.618 MB / 0.8437 GB, free: 348 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.175e-05/1.05, allocations: 4 kB / 0.8437 GB, free: 344 kB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/1.051, allocations: 0.6351 MB / 0.8443 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004212/1.052, allocations: 83.42 kB / 0.8444 GB, free: 15.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001355/1.053, allocations: 123.9 kB / 0.8445 GB, free: 15.48 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003092/1.054, allocations: 153.8 kB / 0.8447 GB, free: 15.33 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007804/1.061, allocations: 4.811 MB / 0.8494 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.009653/1.071, allocations: 6.917 MB / 0.8561 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002906/1.074, allocations: 2.228 MB / 0.8583 GB, free: 1.18 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002104/1.076, allocations: 1.297 MB / 0.8596 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of Backend: time 6.42e-07/1.076, allocations: 0 / 0.8596 GB, free: 15.86 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01821/1.094, allocations: 6.219 MB / 0.8657 GB, free: 9.949 MB / 0.6231 GB Notification: Performance of SimCode: time 0.01098/1.105, allocations: 6.36 MB / 0.8719 GB, free: 3.586 MB / 0.6231 GB Notification: Performance of Templates: time 0.1558/1.261, allocations: 106.7 MB / 0.976 GB, free: 9.457 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