Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 177.4 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.542/1.542, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009409/0.0009403, allocations: 101.1 kB / 292.2 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4277/0.4277, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004702/0.0004702, allocations: 8 kB / 459.9 MB, free: 1.547 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4824/0.4828, allocations: 61.9 MB / 0.5096 GB, free: 38.1 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.351/7.834, allocations: 2.838 GB / 3.348 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002485/7.834, allocations: 87.92 kB / 3.348 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.746/9.58, allocations: 0.498 GB / 3.846 GB, free: 35.52 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.783e-06/9.58, allocations: 0 / 3.846 GB, free: 35.52 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001898/9.58, allocations: 42.19 kB / 3.846 GB, free: 35.48 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01394/9.594, allocations: 3.198 MB / 3.849 GB, free: 32.64 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/9.594, allocations: 8.031 kB / 3.849 GB, free: 32.63 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006115/9.6, allocations: 0.7081 MB / 3.85 GB, free: 32.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005901/9.606, allocations: 1.591 MB / 3.851 GB, free: 30.77 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/9.607, allocations: 166.6 kB / 3.851 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009692/9.608, allocations: 182.6 kB / 3.851 GB, free: 30.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009534/9.617, allocations: 3.582 MB / 3.855 GB, free: 27.48 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.454e-05/9.617, allocations: 11.94 kB / 3.855 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006671/9.618, allocations: 77.67 kB / 3.855 GB, free: 27.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001863/9.618, allocations: 167 kB / 3.855 GB, free: 27.25 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007917/9.626, allocations: 3.521 MB / 3.859 GB, free: 24.39 MB / 0.5261 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.01931/9.645, allocations: 14.13 MB / 3.872 GB, free: 10.72 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004728/9.65, allocations: 2.284 MB / 3.875 GB, free: 8.395 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4845/10.13, allocations: 63.42 MB / 3.937 GB, free: 35.55 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004975/10.14, allocations: 1.727 MB / 3.938 GB, free: 35.43 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 5.761e-06/10.14, allocations: 0 / 3.938 GB, free: 35.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02069/10.16, allocations: 9.456 MB / 3.948 GB, free: 34.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/10.16, allocations: 287.8 kB / 3.948 GB, free: 33.75 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002251/10.16, allocations: 1.193 MB / 3.949 GB, free: 33.59 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000278/10.16, allocations: 60.64 kB / 3.949 GB, free: 33.56 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007445/10.16, allocations: 0.8281 MB / 3.95 GB, free: 33.24 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006232/10.16, allocations: 0.6038 MB / 3.95 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/10.16, allocations: 43.59 kB / 3.95 GB, free: 32.95 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001399/10.16, allocations: 387.9 kB / 3.951 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002557/10.17, allocations: 1.281 MB / 3.952 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002771/10.17, allocations: 1.83 MB / 3.954 GB, free: 32.01 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002742/10.17, allocations: 1.51 MB / 3.955 GB, free: 31.99 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.269e-05/10.17, allocations: 4.094 kB / 3.955 GB, free: 31.99 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008119/10.18, allocations: 4.332 MB / 3.96 GB, free: 31.82 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0016/10.18, allocations: 6.279 MB / 3.966 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/10.18, allocations: 17.09 kB / 3.966 GB, free: 25.29 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01469/10.2, allocations: 3.672 MB / 3.969 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/10.2, allocations: 330.5 kB / 3.97 GB, free: 25.25 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006536/10.21, allocations: 4.057 MB / 3.974 GB, free: 24.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/10.21, allocations: 274 kB / 3.974 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/10.21, allocations: 113.7 kB / 3.974 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/10.21, allocations: 5 kB / 3.974 GB, free: 24.66 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00753/10.22, allocations: 3.941 MB / 3.978 GB, free: 24.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-05/10.22, allocations: 18.23 kB / 3.978 GB, free: 24.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009361/10.23, allocations: 2.441 MB / 3.98 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/10.23, allocations: 364.8 kB / 3.981 GB, free: 24.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00457/10.23, allocations: 3.337 MB / 3.984 GB, free: 24 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002812/10.24, allocations: 268.7 kB / 3.984 GB, free: 23.99 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/10.24, allocations: 103.3 kB / 3.984 GB, free: 23.99 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0018/10.24, allocations: 0.7079 MB / 3.985 GB, free: 23.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004678/10.24, allocations: 158.6 kB / 3.985 GB, free: 23.72 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009784/10.25, allocations: 6.855 MB / 3.992 GB, free: 23.22 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.123e-05/10.25, allocations: 70.75 kB / 3.992 GB, free: 23.22 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-05/10.25, allocations: 7.891 kB / 3.992 GB, free: 23.22 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006999/10.25, allocations: 5.499 MB / 3.997 GB, free: 22.5 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/10.27, allocations: 9.571 MB / 4.006 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/10.27, allocations: 7.203 kB / 4.007 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/10.27, allocations: 441.7 kB / 4.007 GB, free: 21.86 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001645/10.27, allocations: 477 kB / 4.007 GB, free: 21.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/10.27, allocations: 65.7 kB / 4.007 GB, free: 21.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00142/10.27, allocations: 3.213 MB / 4.011 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/10.27, allocations: 2.938 kB / 4.011 GB, free: 19.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009283/10.28, allocations: 7.139 MB / 4.018 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002065/10.28, allocations: 0.7719 MB / 4.018 GB, free: 18.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003234/10.28, allocations: 51.28 kB / 4.018 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0015/10.29, allocations: 210.6 kB / 4.019 GB, free: 18.02 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003531/10.29, allocations: 183.2 kB / 4.019 GB, free: 18 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/10.29, allocations: 73.77 kB / 4.019 GB, free: 17.98 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001666/10.29, allocations: 1.242 MB / 4.02 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/10.29, allocations: 3.391 kB / 4.02 GB, free: 17.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.009727/10.3, allocations: 2.364 MB / 4.022 GB, free: 17.26 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01019/10.31, allocations: 2.004 MB / 4.024 GB, free: 16.93 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01003/10.32, allocations: 5.497 MB / 4.03 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.027e-05/10.32, allocations: 3.312 kB / 4.03 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003238/10.32, allocations: 2.373 MB / 4.032 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004329/10.33, allocations: 0.7916 MB / 4.033 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/10.34, allocations: 8.135 MB / 4.041 GB, free: 9.73 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001347/10.34, allocations: 2.058 MB / 4.043 GB, free: 8.848 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003399/10.34, allocations: 1.449 MB / 4.044 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005115/10.34, allocations: 159.2 kB / 4.044 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of SimCode: time 1.232e-06/10.34, allocations: 3.531 kB / 4.044 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of Templates: time 0.4707/10.81, allocations: 82.57 MB / 4.125 GB, free: 90.97 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches