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.001077/0.001077, allocations: 179 kB / 18.09 MB, free: 3.746 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.432/1.432, allocations: 223.3 MB / 242.1 MB, free: 11.67 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.0008387/0.0008387, allocations: 93.83 kB / 293.3 MB, free: 10.76 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.3968/0.3968, allocations: 44.14 MB / 388.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003754/0.0003754, allocations: 8 kB / 461.1 MB, free: 1.301 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3958/0.3962, allocations: 61.87 MB / 0.5107 GB, free: 38.19 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.175/6.571, allocations: 2.839 GB / 3.349 GB, free: 10.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/6.571, allocations: 87.89 kB / 3.349 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.744/8.315, allocations: 481.2 MB / 3.819 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.437e-06/8.315, allocations: 0 / 3.819 GB, free: 53.11 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001179/8.315, allocations: 47.86 kB / 3.819 GB, free: 53.1 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.01393/8.329, allocations: 3.166 MB / 3.822 GB, free: 51.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/8.329, allocations: 16.97 kB / 3.822 GB, free: 51.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005512/8.335, allocations: 0.7136 MB / 3.823 GB, free: 51.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02905/8.364, allocations: 15.84 MB / 3.839 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002422/8.364, allocations: 166.1 kB / 3.839 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006602/8.365, allocations: 177.8 kB / 3.839 GB, free: 51.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006404/8.371, allocations: 3.606 MB / 3.842 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.888e-05/8.371, allocations: 10.19 kB / 3.842 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000239/8.372, allocations: 77.05 kB / 3.842 GB, free: 50.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001375/8.372, allocations: 175.4 kB / 3.843 GB, free: 50.83 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006197/8.378, allocations: 3.513 MB / 3.846 GB, free: 50.82 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.016/8.394, allocations: 14.11 MB / 3.86 GB, free: 43.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004687/8.399, allocations: 2.282 MB / 3.862 GB, free: 42.93 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/8.401, allocations: 1.198 MB / 3.863 GB, free: 42.89 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1046/8.505, allocations: 63.44 MB / 3.925 GB, free: 18.39 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004705/8.51, allocations: 1.73 MB / 3.927 GB, free: 17.85 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 7.294e-06/8.51, allocations: 0 / 3.927 GB, free: 17.85 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.02024/8.53, allocations: 9.459 MB / 3.936 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006676/8.531, allocations: 284.7 kB / 3.936 GB, free: 29.66 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/8.533, allocations: 1.32 MB / 3.938 GB, free: 29.14 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000254/8.533, allocations: 57.61 kB / 3.938 GB, free: 29.09 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005886/8.533, allocations: 0.8243 MB / 3.939 GB, free: 28.45 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004363/8.534, allocations: 0.6037 MB / 3.939 GB, free: 27.99 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001174/8.534, allocations: 43.47 kB / 3.939 GB, free: 27.96 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001742/8.534, allocations: 398.8 kB / 3.94 GB, free: 27.61 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001989/8.536, allocations: 1.276 MB / 3.941 GB, free: 27.19 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00217/8.538, allocations: 1.849 MB / 3.943 GB, free: 26.09 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004396/8.543, allocations: 3.136 MB / 3.946 GB, free: 24.48 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.628e-05/8.543, allocations: 3.938 kB / 3.946 GB, free: 24.48 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007072/8.55, allocations: 4.34 MB / 3.95 GB, free: 22.98 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003188/8.55, allocations: 0.5545 MB / 3.95 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/8.55, allocations: 14.69 kB / 3.95 GB, free: 22.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01411/8.564, allocations: 3.681 MB / 3.954 GB, free: 20.38 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/8.566, allocations: 330.7 kB / 3.954 GB, free: 20.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007027/8.573, allocations: 4.059 MB / 3.958 GB, free: 16.65 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002926/8.576, allocations: 274.6 kB / 3.959 GB, free: 16.45 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004266/8.576, allocations: 103.5 kB / 3.959 GB, free: 16.35 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/8.576, allocations: 8 kB / 3.959 GB, free: 16.34 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008062/8.584, allocations: 3.935 MB / 3.963 GB, free: 12.99 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.807e-05/8.584, allocations: 16 kB / 3.963 GB, free: 12.97 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008957/8.593, allocations: 2.431 MB / 3.965 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/8.595, allocations: 367.1 kB / 3.965 GB, free: 10.83 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005396/8.601, allocations: 3.34 MB / 3.969 GB, free: 7.961 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/8.603, allocations: 266.3 kB / 3.969 GB, free: 7.758 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004632/8.604, allocations: 103.5 kB / 3.969 GB, free: 7.664 MB / 0.5573 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.002041/8.606, allocations: 0.6989 MB / 3.97 GB, free: 7.035 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006052/8.606, allocations: 162 kB / 3.97 GB, free: 6.875 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01148/8.618, allocations: 6.849 MB / 3.976 GB, free: 0.9258 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-05/8.618, allocations: 77.62 kB / 3.977 GB, free: 0.8789 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/8.618, allocations: 7.938 kB / 3.977 GB, free: 0.8711 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.3292/8.947, allocations: 5.716 MB / 3.982 GB, free: 81.58 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/8.96, allocations: 9.565 MB / 3.991 GB, free: 81.11 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.548e-05/8.96, allocations: 3.75 kB / 3.991 GB, free: 81.11 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001649/8.962, allocations: 446 kB / 3.992 GB, free: 81.11 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001569/8.963, allocations: 473.5 kB / 3.992 GB, free: 81.07 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001725/8.963, allocations: 65.22 kB / 3.992 GB, free: 81.07 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001374/8.965, allocations: 3.218 MB / 3.996 GB, free: 78.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/8.965, allocations: 4.594 kB / 3.996 GB, free: 78.5 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008748/8.974, allocations: 7.049 MB / 4.002 GB, free: 78.14 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/8.975, allocations: 0.7679 MB / 4.003 GB, free: 78 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004146/8.976, allocations: 51.5 kB / 4.003 GB, free: 78 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001531/8.977, allocations: 219.3 kB / 4.003 GB, free: 77.99 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/8.978, allocations: 178.9 kB / 4.004 GB, free: 77.99 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000141/8.978, allocations: 69.38 kB / 4.004 GB, free: 77.99 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001615/8.979, allocations: 1.239 MB / 4.005 GB, free: 77.88 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.8e-07/8.979, allocations: 0.6562 kB / 4.005 GB, free: 77.88 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01102/8.99, allocations: 2.317 MB / 4.007 GB, free: 77.88 MB / 0.5573 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.01157/9.002, allocations: 1.939 MB / 4.009 GB, free: 77.77 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01064/9.013, allocations: 5.487 MB / 4.014 GB, free: 77.65 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.467e-06/9.013, allocations: 2.906 kB / 4.014 GB, free: 77.65 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003478/9.016, allocations: 2.363 MB / 4.017 GB, free: 77.64 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004456/9.021, allocations: 0.814 MB / 4.018 GB, free: 77.62 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/9.032, allocations: 8.144 MB / 4.025 GB, free: 74.75 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001587/9.034, allocations: 2.003 MB / 4.027 GB, free: 74.01 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.003376/9.037, allocations: 1.46 MB / 4.029 GB, free: 73.98 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004714/9.038, allocations: 150 kB / 4.029 GB, free: 73.98 MB / 0.5573 GB Notification: Performance of SimCode: time 1.423e-06/9.038, allocations: 1.031 kB / 4.029 GB, free: 73.98 MB / 0.5573 GB Notification: Performance of Templates: time 0.1045/9.142, allocations: 84.3 MB / 4.111 GB, free: 70.36 MB / 0.5573 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/jenkins1/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