Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.SeriesPipes13,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.SeriesPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13,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.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001082/0.001082, allocations: 113.2 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001199/0.001199, allocations: 210.7 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2246/0.2246, allocations: 46.09 MB / 345 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001514/0.001514, allocations: 79.88 kB / 482 MB, free: 4.055 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2908, allocations: 62.44 MB / 0.5317 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.08366/0.3745, allocations: 92.01 MB / 0.6215 GB, free: 5.383 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.04807/0.4226, allocations: 37.3 MB / 0.658 GB, free: 15.97 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002361/0.425, allocations: 87.5 kB / 0.658 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00325/0.4284, allocations: 1.169 MB / 0.6592 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0206/0.449, allocations: 8.021 MB / 0.667 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.02068/0.4697, allocations: 9.098 MB / 0.6759 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.007761/0.4775, allocations: 6.648 MB / 0.6824 GB, free: 6.914 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002353/0.4798, allocations: 1.5 MB / 0.6839 GB, free: 5.391 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004501/0.4843, allocations: 2.628 MB / 0.6864 GB, free: 2.754 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02867/0.513, allocations: 13.54 MB / 0.6997 GB, free: 5.016 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0008851/0.5139, allocations: 216 kB / 0.6999 GB, free: 4.805 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02145/0.5354, allocations: 10.48 MB / 0.7101 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.537, allocations: 0.9504 MB / 0.711 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002669/0.5397, allocations: 1.396 MB / 0.7124 GB, free: 7.953 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.2905/0.8302, allocations: 9.504 MB / 0.7217 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8303, allocations: 1.562 kB / 0.7217 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8303, allocations: 0.5938 kB / 0.7217 GB, free: 43.29 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.873e-05/0.8304, allocations: 0 / 0.7217 GB, free: 43.29 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.01238/0.8427, allocations: 4.083 MB / 0.7257 GB, free: 41.82 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.092e-05/0.8428, allocations: 8.812 kB / 0.7257 GB, free: 41.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01012/0.8529, allocations: 0.8105 MB / 0.7265 GB, free: 41.69 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01589/0.8688, allocations: 6.678 MB / 0.733 GB, free: 41.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002084/0.8691, allocations: 176.9 kB / 0.7331 GB, free: 41.12 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000494/0.8696, allocations: 199.9 kB / 0.7333 GB, free: 41.11 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.8808, allocations: 3.483 MB / 0.7367 GB, free: 40.66 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.001e-05/0.8809, allocations: 9.312 kB / 0.7367 GB, free: 40.66 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003393/0.8812, allocations: 82.06 kB / 0.7368 GB, free: 40.66 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003475/0.8816, allocations: 190.2 kB / 0.737 GB, free: 40.65 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.8918, allocations: 3.226 MB / 0.7402 GB, free: 40.63 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.02321/0.9151, allocations: 15.09 MB / 0.7549 GB, free: 31.57 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008216/0.9233, allocations: 2.26 MB / 0.7571 GB, free: 31.53 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002617/0.926, allocations: 1.143 MB / 0.7582 GB, free: 31.52 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0686/0.9946, allocations: 27.26 MB / 0.7848 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00484/0.9994, allocations: 1.608 MB / 0.7864 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 5.631e-06/0.9995, allocations: 0 / 0.7864 GB, free: 12.97 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.01952/1.019, allocations: 8.026 MB / 0.7942 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/1.019, allocations: 226.9 kB / 0.7945 GB, free: 11.05 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001962/1.021, allocations: 1.632 MB / 0.7961 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001878/1.021, allocations: 59.45 kB / 0.7961 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005963/1.022, allocations: 0.9858 MB / 0.7971 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003921/1.022, allocations: 0.5787 MB / 0.7976 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006678/1.023, allocations: 441.3 kB / 0.7981 GB, free: 8.617 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002683/1.023, allocations: 305.1 kB / 0.7984 GB, free: 24.32 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001908/1.025, allocations: 1.16 MB / 0.7995 GB, free: 23.52 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002275/1.027, allocations: 1.653 MB / 0.8011 GB, free: 22.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004016/1.031, allocations: 2.885 MB / 0.8039 GB, free: 20 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/1.031, allocations: 7.375 kB / 0.8039 GB, free: 19.99 MB / 0.5762 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006481/1.038, allocations: 3.972 MB / 0.8078 GB, free: 17.29 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/1.038, allocations: 48.22 kB / 0.8078 GB, free: 17.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.884e-05/1.038, allocations: 12 kB / 0.8079 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01613/1.054, allocations: 3.149 MB / 0.8109 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/1.055, allocations: 319.1 kB / 0.8112 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005742/1.061, allocations: 3.44 MB / 0.8146 GB, free: 11.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.063, allocations: 111.7 kB / 0.8147 GB, free: 11.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/1.064, allocations: 104.3 kB / 0.8148 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003005/1.067, allocations: 1.6 MB / 0.8164 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002506/1.069, allocations: 1.591 MB / 0.8179 GB, free: 9.043 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004471/1.074, allocations: 2.768 MB / 0.8206 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.185e-05/1.074, allocations: 4 kB / 0.8206 GB, free: 6.98 MB / 0.5762 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.007761/1.081, allocations: 3.751 MB / 0.8243 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/1.081, allocations: 37.7 kB / 0.8243 GB, free: 4.316 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.032e-05/1.081, allocations: 15.94 kB / 0.8243 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007109/1.089, allocations: 1.719 MB / 0.826 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/1.09, allocations: 360.6 kB / 0.8264 GB, free: 2.445 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004505/1.095, allocations: 2.751 MB / 0.8291 GB, free: 15.69 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001996/1.097, allocations: 99.92 kB / 0.8291 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002757/1.097, allocations: 99.97 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.0006888/1.098, allocations: 348.7 kB / 0.8296 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005938/1.098, allocations: 201.6 kB / 0.8298 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01147/1.11, allocations: 7.669 MB / 0.8373 GB, free: 7.199 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008626/1.118, allocations: 6.624 MB / 0.8437 GB, free: 432 kB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.276e-06/1.118, allocations: 0 / 0.8437 GB, free: 432 kB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001459/1.12, allocations: 0.6329 MB / 0.8443 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005795/1.12, allocations: 83.52 kB / 0.8444 GB, free: 15.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001514/1.122, allocations: 131.8 kB / 0.8445 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003189/1.122, allocations: 149.8 kB / 0.8447 GB, free: 15.41 MB / 0.6075 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.008202/1.13, allocations: 4.816 MB / 0.8494 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01005/1.141, allocations: 6.911 MB / 0.8561 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002924/1.144, allocations: 2.233 MB / 0.8583 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.002165/1.146, allocations: 1.293 MB / 0.8596 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of Backend: time 1.873e-06/1.146, allocations: 4 kB / 0.8596 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.01803/1.164, allocations: 6.22 MB / 0.8657 GB, free: 10.03 MB / 0.6231 GB Notification: Performance of SimCode: time 0.01133/1.175, allocations: 6.359 MB / 0.8719 GB, free: 3.664 MB / 0.6231 GB Notification: Performance of Templates: time 0.1509/1.326, allocations: 106.7 MB / 0.9761 GB, free: 9.531 MB / 0.7325 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes13/SeriesPipes13.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches