Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009172/0.0009172, allocations: 180.9 kB / 8.006 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.398/1.398, allocations: 205.3 MB / 213.7 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008947/0.0008948, allocations: 86.3 kB / 261.7 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2005/0.2005, allocations: 43.5 MB / 353.2 MB, free: 272 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.51e-05/1.516e-05, allocations: 4 kB / 418.3 MB, free: 28.57 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1108/0.1108, allocations: 58.85 MB / 477.1 MB, free: 1.668 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.36/7.471, allocations: 2.832 GB / 3.298 GB, free: 127 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002534/7.472, allocations: 84.3 kB / 3.298 GB, free: 127 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.799/9.27, allocations: 498.2 MB / 3.785 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.964e-06/9.271, allocations: 0 / 3.785 GB, free: 5.809 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001858/9.271, allocations: 43.52 kB / 3.785 GB, free: 5.77 MB / 0.4948 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.01309/9.284, allocations: 2.977 MB / 3.788 GB, free: 2.746 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/9.284, allocations: 12.03 kB / 3.788 GB, free: 2.734 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005656/9.29, allocations: 0.7117 MB / 3.789 GB, free: 2.02 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004831/9.294, allocations: 1.581 MB / 3.79 GB, free: 420 kB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002101/9.295, allocations: 91.97 kB / 3.79 GB, free: 328 kB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009052/9.296, allocations: 107.9 kB / 3.79 GB, free: 220 kB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005763/9.301, allocations: 2.832 MB / 3.793 GB, free: 13.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006082/9.307, allocations: 2.874 MB / 3.796 GB, free: 10.36 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-05/9.308, allocations: 7.938 kB / 3.796 GB, free: 10.35 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003447/9.308, allocations: 4 kB / 3.796 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002006/9.308, allocations: 171.5 kB / 3.796 GB, free: 10.18 MB / 0.5105 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.5796/9.888, allocations: 140.5 MB / 3.933 GB, free: 20.2 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00274/9.89, allocations: 1.577 MB / 3.935 GB, free: 20.16 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/9.892, allocations: 0.973 MB / 3.936 GB, free: 20.15 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03124/9.923, allocations: 16.73 MB / 3.952 GB, free: 25.36 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002546/9.926, allocations: 1.134 MB / 3.953 GB, free: 25.26 MB / 0.573 GB Notification: Performance of pre-optimization done (n=139): time 6.142e-06/9.926, allocations: 0 / 3.953 GB, free: 25.26 MB / 0.573 GB Notification: Performance of matching and sorting (n=159): time 0.01914/9.945, allocations: 7.404 MB / 3.961 GB, free: 24.28 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001286/9.945, allocations: 226.4 kB / 3.961 GB, free: 24.03 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001561/9.947, allocations: 0.9274 MB / 3.962 GB, free: 23.87 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001908/9.947, allocations: 25.7 kB / 3.962 GB, free: 23.84 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007601/9.948, allocations: 0.8866 MB / 3.963 GB, free: 23.46 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004497/9.948, allocations: 0.5318 MB / 3.963 GB, free: 23.19 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001672/9.948, allocations: 4 kB / 3.963 GB, free: 23.19 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0002503/9.949, allocations: 446 kB / 3.964 GB, free: 22.87 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/9.95, allocations: 1.129 MB / 3.965 GB, free: 22.86 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/9.952, allocations: 1.66 MB / 3.966 GB, free: 22.24 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005569/9.957, allocations: 2.008 MB / 3.968 GB, free: 22.18 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.825e-05/9.957, allocations: 7.312 kB / 3.968 GB, free: 22.18 MB / 0.573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0103/9.968, allocations: 4.436 MB / 3.973 GB, free: 21.99 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00299/9.971, allocations: 6.275 MB / 3.979 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-05/9.971, allocations: 18.09 kB / 3.979 GB, free: 15.41 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01134/9.982, allocations: 2.742 MB / 3.981 GB, free: 15.31 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001637/9.984, allocations: 333.5 kB / 3.982 GB, free: 15.31 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00699/9.991, allocations: 4.251 MB / 3.986 GB, free: 14.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/9.994, allocations: 246.7 kB / 3.986 GB, free: 14.69 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003395/9.994, allocations: 112.8 kB / 3.986 GB, free: 14.69 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/9.994, allocations: 3.344 kB / 3.986 GB, free: 14.69 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008465/10, allocations: 3.876 MB / 3.99 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/10, allocations: 16.94 kB / 3.99 GB, free: 14.6 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00709/10.01, allocations: 2.121 MB / 3.992 GB, free: 14.26 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/10.01, allocations: 363.4 kB / 3.992 GB, free: 13.99 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004155/10.02, allocations: 3.249 MB / 3.996 GB, free: 12.09 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002323/10.02, allocations: 228.9 kB / 3.996 GB, free: 11.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003875/10.02, allocations: 106 kB / 3.996 GB, free: 11.86 MB / 0.573 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 ($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,source.medium.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.0008004/10.02, allocations: 160.6 kB / 3.996 GB, free: 11.73 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004343/10.02, allocations: 142.4 kB / 3.996 GB, free: 11.59 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007535/10.03, allocations: 5.648 MB / 4.002 GB, free: 8.566 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-05/10.03, allocations: 67.78 kB / 4.002 GB, free: 8.543 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/10.03, allocations: 4 kB / 4.002 GB, free: 8.539 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00577/10.03, allocations: 5.13 MB / 4.007 GB, free: 5.484 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3315/10.36, allocations: 8.402 MB / 4.015 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/10.36, allocations: 4.266 kB / 4.015 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/10.37, allocations: 399.3 kB / 4.015 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000997/10.37, allocations: 417.1 kB / 4.016 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/10.37, allocations: 38.3 kB / 4.016 GB, free: 114.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/10.37, allocations: 3.354 MB / 4.019 GB, free: 112.2 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/10.37, allocations: 1 kB / 4.019 GB, free: 112.2 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009248/10.38, allocations: 6.251 MB / 4.025 GB, free: 111.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001401/10.38, allocations: 0.568 MB / 4.026 GB, free: 111.7 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002854/10.38, allocations: 21.48 kB / 4.026 GB, free: 111.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/10.38, allocations: 162.6 kB / 4.026 GB, free: 111.7 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003265/10.38, allocations: 166.7 kB / 4.026 GB, free: 111.7 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/10.38, allocations: 58.22 kB / 4.026 GB, free: 111.7 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0009446/10.38, allocations: 0.6626 MB / 4.027 GB, free: 111.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.7e-07/10.38, allocations: 0 / 4.027 GB, free: 111.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009581/10.39, allocations: 2.186 MB / 4.029 GB, free: 111.6 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 34 ($cse1.region3boundary,$cse2.region3boundary,$cse3.phase,$cse3.region,$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,$cse21.phase,$cse21.region,$cse27.phase,$cse27.region,$cse31.phase,$cse31.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (184): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.01033/10.4, allocations: 2.064 MB / 4.031 GB, free: 111.5 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.009215/10.41, allocations: 4.843 MB / 4.036 GB, free: 111.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/10.41, allocations: 1.031 kB / 4.036 GB, free: 111.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003749/10.42, allocations: 2.085 MB / 4.038 GB, free: 111.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003585/10.42, allocations: 0.5582 MB / 4.038 GB, free: 111.4 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007325/10.43, allocations: 5.064 MB / 4.043 GB, free: 110.5 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/10.43, allocations: 1.925 MB / 4.045 GB, free: 109.8 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.003161/10.43, allocations: 1.69 MB / 4.047 GB, free: 109.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004258/10.43, allocations: 133.6 kB / 4.047 GB, free: 109.7 MB / 0.573 GB Notification: Performance of SimCode: time 9.92e-07/10.43, allocations: 2.734 kB / 4.047 GB, free: 109.7 MB / 0.573 GB Notification: Performance of Templates: time 0.08688/10.52, allocations: 71.65 MB / 4.117 GB, free: 106.5 MB / 0.573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches