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.001152/0.001152, allocations: 179.7 kB / 14.15 MB, free: 1.176 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.246/1.246, allocations: 221.3 MB / 236 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008816/0.0008818, allocations: 84.11 kB / 287 MB, free: 236 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1793/0.1793, allocations: 44.14 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.425e-05/2.427e-05, allocations: 4.219 kB / 451.8 MB, free: 9.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1202, allocations: 61.92 MB / 0.5017 GB, free: 11.45 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.63/7.75, allocations: 2.838 GB / 3.34 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/7.75, allocations: 79.08 kB / 3.34 GB, free: 32.19 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.146/9.896, allocations: 0.497 GB / 3.837 GB, free: 54.72 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.644e-06/9.896, allocations: 3.969 kB / 3.837 GB, free: 54.72 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001076/9.896, allocations: 41.73 kB / 3.837 GB, free: 54.72 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.01322/9.909, allocations: 2.989 MB / 3.84 GB, free: 53.62 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/9.909, allocations: 11.06 kB / 3.84 GB, free: 53.62 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005194/9.914, allocations: 0.7062 MB / 3.84 GB, free: 53.51 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004239/9.919, allocations: 1.586 MB / 3.842 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002002/9.919, allocations: 167.1 kB / 3.842 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007569/9.92, allocations: 184.3 kB / 3.842 GB, free: 53.14 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007382/9.927, allocations: 3.527 MB / 3.846 GB, free: 52.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.621e-05/9.927, allocations: 6.906 kB / 3.846 GB, free: 52.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002337/9.927, allocations: 71.81 kB / 3.846 GB, free: 52.69 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/9.928, allocations: 172.3 kB / 3.846 GB, free: 52.68 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005718/9.933, allocations: 3.332 MB / 3.849 GB, free: 52.67 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or 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.01616/9.95, allocations: 14.14 MB / 3.863 GB, free: 44.9 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003854/9.953, allocations: 2.144 MB / 3.865 GB, free: 44.76 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001246/9.955, allocations: 1.075 MB / 3.866 GB, free: 44.72 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1117/10.07, allocations: 63.66 MB / 3.928 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004592/10.07, allocations: 1.687 MB / 3.93 GB, free: 20.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 6.482e-06/10.07, allocations: 0 / 3.93 GB, free: 20.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.01909/10.09, allocations: 8.157 MB / 3.938 GB, free: 19.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000167/10.09, allocations: 282.5 kB / 3.938 GB, free: 19.03 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/10.09, allocations: 1.173 MB / 3.939 GB, free: 18.78 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002156/10.09, allocations: 57.33 kB / 3.939 GB, free: 18.73 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005862/10.09, allocations: 0.8215 MB / 3.94 GB, free: 18.09 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004734/10.09, allocations: 0.6056 MB / 3.941 GB, free: 17.63 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000127/10.09, allocations: 45.97 kB / 3.941 GB, free: 17.6 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001793/10.09, allocations: 388.8 kB / 3.941 GB, free: 17.26 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/10.1, allocations: 1.138 MB / 3.942 GB, free: 16.85 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001649/10.1, allocations: 1.704 MB / 3.944 GB, free: 15.75 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/10.1, allocations: 1.378 MB / 3.945 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/10.1, allocations: 7.688 kB / 3.945 GB, free: 15.25 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.005471/10.1, allocations: 3.972 MB / 3.949 GB, free: 13.85 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.002876/10.11, allocations: 6.274 MB / 3.955 GB, free: 23.15 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.799e-05/10.11, allocations: 15.75 kB / 3.955 GB, free: 23.15 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01349/10.12, allocations: 3.466 MB / 3.959 GB, free: 22.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/10.12, allocations: 337.3 kB / 3.959 GB, free: 22.62 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00624/10.13, allocations: 3.813 MB / 3.963 GB, free: 19.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/10.13, allocations: 279.1 kB / 3.963 GB, free: 19.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004528/10.13, allocations: 107.4 kB / 3.963 GB, free: 19.54 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/10.13, allocations: 7.75 kB / 3.963 GB, free: 19.54 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006477/10.14, allocations: 3.574 MB / 3.967 GB, free: 16.53 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-05/10.14, allocations: 19.89 kB / 3.967 GB, free: 16.52 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007941/10.15, allocations: 2.258 MB / 3.969 GB, free: 14.78 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/10.15, allocations: 375.4 kB / 3.969 GB, free: 14.49 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/10.15, allocations: 3.101 MB / 3.972 GB, free: 11.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/10.15, allocations: 265.1 kB / 3.973 GB, free: 11.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004847/10.16, allocations: 106.2 kB / 3.973 GB, free: 11.5 MB / 0.5573 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) 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 () * 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.001006/10.16, allocations: 225.4 kB / 3.973 GB, free: 11.29 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005765/10.16, allocations: 166 kB / 3.973 GB, free: 11.13 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0104/10.17, allocations: 6.775 MB / 3.98 GB, free: 5.203 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.894e-05/10.17, allocations: 71.05 kB / 3.98 GB, free: 5.16 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.145e-05/10.17, allocations: 4 kB / 3.98 GB, free: 5.156 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007057/10.17, allocations: 5.449 MB / 3.985 GB, free: 156 kB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0154/10.19, allocations: 9.486 MB / 3.994 GB, free: 8.188 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/10.19, allocations: 4 kB / 3.994 GB, free: 8.184 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/10.19, allocations: 436.5 kB / 3.995 GB, free: 7.848 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001566/10.19, allocations: 453.6 kB / 3.995 GB, free: 7.5 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002365/10.19, allocations: 59.55 kB / 3.995 GB, free: 7.449 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002219/10.2, allocations: 3.214 MB / 3.998 GB, free: 4.254 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/10.2, allocations: 0 / 3.998 GB, free: 4.254 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3722/10.57, allocations: 7.407 MB / 4.006 GB, free: 99.11 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002618/10.57, allocations: 0.7703 MB / 4.006 GB, free: 99.01 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00066/10.57, allocations: 52.78 kB / 4.006 GB, free: 99.01 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002115/10.57, allocations: 211.5 kB / 4.007 GB, free: 99.01 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004839/10.57, allocations: 182.6 kB / 4.007 GB, free: 99.01 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001803/10.57, allocations: 67.91 kB / 4.007 GB, free: 99.01 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002088/10.58, allocations: 1.219 MB / 4.008 GB, free: 98.89 MB / 0.573 GB Notification: Performance of sort global known variables: time 2.81e-07/10.58, allocations: 4.188 kB / 4.008 GB, free: 98.89 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01106/10.59, allocations: 2.37 MB / 4.01 GB, free: 98.89 MB / 0.573 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 () * 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.01163/10.6, allocations: 2.003 MB / 4.012 GB, free: 98.78 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01173/10.61, allocations: 5.125 MB / 4.017 GB, free: 98.7 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.977e-05/10.61, allocations: 5.188 kB / 4.017 GB, free: 98.7 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.006406/10.62, allocations: 2.273 MB / 4.02 GB, free: 98.68 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005294/10.62, allocations: 0.7857 MB / 4.02 GB, free: 98.67 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01108/10.63, allocations: 5.683 MB / 4.026 GB, free: 97.69 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/10.64, allocations: 2.058 MB / 4.028 GB, free: 96.95 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004668/10.64, allocations: 1.611 MB / 4.029 GB, free: 96.93 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006265/10.64, allocations: 142.8 kB / 4.03 GB, free: 96.92 MB / 0.573 GB Notification: Performance of SimCode: time 1.202e-06/10.64, allocations: 0 / 4.03 GB, free: 96.92 MB / 0.573 GB Notification: Performance of Templates: time 0.1138/10.75, allocations: 85.24 MB / 4.113 GB, free: 93.64 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