Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.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.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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 109.9 kB / 18.45 MB, free: 4.602 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.002088/0.002088, allocations: 185.9 kB / 19.38 MB, free: 3.68 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.358/1.358, allocations: 222.9 MB / 243.1 MB, free: 15.07 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.2021/0.2021, allocations: 44.18 MB / 337.4 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00133/0.00133, allocations: 59.91 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2938, allocations: 60.83 MB / 0.5196 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13): time 0.08463/0.3784, allocations: 91.74 MB / 0.6092 GB, free: 200 kB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.04527/0.4238, allocations: 37.29 MB / 0.6456 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002456/0.4262, allocations: 83.56 kB / 0.6457 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003123/0.4294, allocations: 1.173 MB / 0.6468 GB, free: 9.531 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.02137/0.4508, allocations: 8.012 MB / 0.6546 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.02059/0.4714, allocations: 9.081 MB / 0.6635 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.007809/0.4792, allocations: 6.64 MB / 0.67 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002373/0.4816, allocations: 1.488 MB / 0.6714 GB, free: 264 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004741/0.4864, allocations: 2.609 MB / 0.674 GB, free: 13.64 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.02886/0.5153, allocations: 13.52 MB / 0.6872 GB, free: 15.92 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.00132/0.5166, allocations: 216 kB / 0.6874 GB, free: 15.71 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02192/0.5386, allocations: 10.46 MB / 0.6976 GB, free: 5.242 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.001614/0.5402, allocations: 0.9388 MB / 0.6985 GB, free: 4.301 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.002677/0.5429, allocations: 1.4 MB / 0.6999 GB, free: 2.895 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.02236/0.5653, allocations: 9.494 MB / 0.7092 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.5653, allocations: 0 / 0.7092 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.903e-06/0.5653, allocations: 3.844 kB / 0.7092 GB, free: 9.371 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001154/0.5655, allocations: 0 / 0.7092 GB, free: 9.371 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.01065/0.5761, allocations: 4.075 MB / 0.7131 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.5762, allocations: 11.97 kB / 0.7132 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005938/0.5821, allocations: 0.8087 MB / 0.7139 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2458/0.828, allocations: 6.684 MB / 0.7205 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.8282, allocations: 177.5 kB / 0.7206 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004578/0.8287, allocations: 198.7 kB / 0.7208 GB, free: 150.4 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007438/0.8361, allocations: 3.482 MB / 0.7242 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.088e-05/0.8362, allocations: 7 kB / 0.7242 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002125/0.8364, allocations: 85.06 kB / 0.7243 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002242/0.8366, allocations: 190.2 kB / 0.7245 GB, free: 149.9 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007339/0.844, allocations: 3.223 MB / 0.7277 GB, free: 149.9 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.01662/0.8606, allocations: 15.1 MB / 0.7424 GB, free: 140.9 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005232/0.8659, allocations: 2.269 MB / 0.7446 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.8676, allocations: 1.129 MB / 0.7457 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04473/0.9123, allocations: 24.67 MB / 0.7698 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004515/0.9169, allocations: 1.613 MB / 0.7714 GB, free: 119 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=155): time 4.308e-06/0.9169, allocations: 0 / 0.7714 GB, free: 119 MB / 0.5606 GB Notification: Performance of matching and sorting (n=171): time 0.01816/0.9351, allocations: 8.03 MB / 0.7792 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.653e-05/0.9352, allocations: 226.9 kB / 0.7794 GB, free: 110.6 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.9369, allocations: 1.634 MB / 0.781 GB, free: 109 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.9371, allocations: 57.7 kB / 0.7811 GB, free: 108.9 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005265/0.9377, allocations: 0.9914 MB / 0.7821 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000349/0.938, allocations: 0.5829 MB / 0.7826 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005925/0.9386, allocations: 435.4 kB / 0.783 GB, free: 106.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.231e-05/0.9387, allocations: 301.1 kB / 0.7833 GB, free: 106.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.9405, allocations: 1.161 MB / 0.7845 GB, free: 105.4 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002031/0.9426, allocations: 1.652 MB / 0.7861 GB, free: 103.6 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.9464, allocations: 2.885 MB / 0.7889 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.984e-06/0.9464, allocations: 4 kB / 0.7889 GB, free: 100.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.006149/0.9526, allocations: 3.979 MB / 0.7928 GB, free: 96.64 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.9526, allocations: 42.58 kB / 0.7928 GB, free: 96.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.9527, allocations: 20.89 kB / 0.7928 GB, free: 96.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01496/0.9676, allocations: 3.152 MB / 0.7959 GB, free: 93.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00113/0.9688, allocations: 313.2 kB / 0.7962 GB, free: 93.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005021/0.9738, allocations: 3.449 MB / 0.7996 GB, free: 89.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/0.9757, allocations: 99.92 kB / 0.7997 GB, free: 89.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002656/0.9759, allocations: 104 kB / 0.7998 GB, free: 89.47 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002616/0.9786, allocations: 1.603 MB / 0.8013 GB, free: 87.86 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002045/0.9806, allocations: 1.593 MB / 0.8029 GB, free: 86.07 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003789/0.9844, allocations: 2.773 MB / 0.8056 GB, free: 83.15 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.248e-05/0.9845, allocations: 4 kB / 0.8056 GB, free: 83.15 MB / 0.5606 GB Notification: Performance of matching and sorting (n=264) (initialization_lambda0): time 0.006461/0.9909, allocations: 3.743 MB / 0.8093 GB, free: 79.47 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.991, allocations: 45.62 kB / 0.8093 GB, free: 79.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.741e-05/0.991, allocations: 16 kB / 0.8093 GB, free: 79.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006348/0.9974, allocations: 1.713 MB / 0.811 GB, free: 77.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/0.9986, allocations: 353.2 kB / 0.8113 GB, free: 77.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003527/1.002, allocations: 2.756 MB / 0.814 GB, free: 74.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/1.004, allocations: 103.9 kB / 0.8141 GB, free: 74.49 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002258/1.004, allocations: 95.98 kB / 0.8142 GB, free: 74.39 MB / 0.5606 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.0005379/1.005, allocations: 346.5 kB / 0.8146 GB, free: 74.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004773/1.005, allocations: 201.6 kB / 0.8147 GB, free: 73.87 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00845/1.014, allocations: 7.674 MB / 0.8222 GB, free: 66.11 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006566/1.02, allocations: 6.621 MB / 0.8287 GB, free: 59.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/1.02, allocations: 128 / 0.8287 GB, free: 59.34 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/1.021, allocations: 0.6367 MB / 0.8293 GB, free: 58.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004941/1.022, allocations: 88.94 kB / 0.8294 GB, free: 58.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001404/1.023, allocations: 119.9 kB / 0.8295 GB, free: 58.48 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002859/1.023, allocations: 153.8 kB / 0.8297 GB, free: 58.33 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.006446/1.03, allocations: 4.818 MB / 0.8344 GB, free: 53.44 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.007622/1.038, allocations: 6.907 MB / 0.8411 GB, free: 46.41 MB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002233/1.04, allocations: 2.23 MB / 0.8433 GB, free: 44.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001674/1.042, allocations: 1.297 MB / 0.8446 GB, free: 42.86 MB / 0.5606 GB Notification: Performance of Backend: time 4.21e-07/1.042, allocations: 0 / 0.8446 GB, free: 42.86 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01608/1.058, allocations: 6.203 MB / 0.8506 GB, free: 37.27 MB / 0.5606 GB Notification: Performance of SimCode: time 0.008003/1.066, allocations: 6.367 MB / 0.8568 GB, free: 30.89 MB / 0.5606 GB Notification: Performance of Templates: time 0.3637/1.429, allocations: 106.7 MB / 0.961 GB, free: 230.6 MB / 0.6231 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches