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.001674/0.001674, allocations: 169.7 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 221.5 MB / 230.7 MB, free: 7.59 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.0009015/0.0009014, allocations: 98.3 kB / 281.6 MB, free: 5.336 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.1857/0.1857, allocations: 44.15 MB / 376.5 MB, free: 3.062 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.121e-05/1.124e-05, allocations: 4.219 kB / 444.6 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1175, allocations: 61.92 MB / 0.4947 GB, free: 1.277 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.465/8.582, allocations: 2.837 GB / 3.332 GB, free: 140.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/8.583, allocations: 75.22 kB / 3.332 GB, free: 140.1 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.955/10.54, allocations: 0.4921 GB / 3.824 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.024e-06/10.54, allocations: 0 / 3.824 GB, free: 46.16 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001699/10.54, allocations: 40 kB / 3.824 GB, free: 46.12 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.01282/10.55, allocations: 2.989 MB / 3.827 GB, free: 43.45 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/10.55, allocations: 15.98 kB / 3.827 GB, free: 43.44 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/10.56, allocations: 0.7059 MB / 3.828 GB, free: 42.88 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004632/10.56, allocations: 1.591 MB / 3.829 GB, free: 41.56 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001952/10.56, allocations: 95.34 kB / 3.829 GB, free: 41.47 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007193/10.56, allocations: 104.4 kB / 3.83 GB, free: 41.38 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004758/10.57, allocations: 2.827 MB / 3.832 GB, free: 38.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004164/10.57, allocations: 2.876 MB / 3.835 GB, free: 36.35 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/10.57, allocations: 4.344 kB / 3.835 GB, free: 36.35 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001925/10.57, allocations: 7.953 kB / 3.835 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/10.57, allocations: 181.1 kB / 3.835 GB, free: 36.19 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.6554/11.23, allocations: 140.6 MB / 3.973 GB, free: 28.88 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/11.23, allocations: 1.574 MB / 3.974 GB, free: 28.84 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001093/11.23, allocations: 0.982 MB / 3.975 GB, free: 28.83 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03117/11.26, allocations: 16.73 MB / 3.991 GB, free: 18.04 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002054/11.26, allocations: 1.142 MB / 3.993 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 4.589e-06/11.26, allocations: 0 / 3.993 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.01717/11.28, allocations: 7.409 MB / 4 GB, free: 16.96 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/11.28, allocations: 221.6 kB / 4 GB, free: 16.71 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001315/11.28, allocations: 0.9237 MB / 4.001 GB, free: 16.56 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001642/11.28, allocations: 28.42 kB / 4.001 GB, free: 16.53 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000706/11.28, allocations: 0.8918 MB / 4.002 GB, free: 16.15 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/11.28, allocations: 0.5244 MB / 4.002 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/11.28, allocations: 4 kB / 4.002 GB, free: 15.88 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002556/11.28, allocations: 449.9 kB / 4.003 GB, free: 15.56 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/11.28, allocations: 1.125 MB / 4.004 GB, free: 15.55 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/11.29, allocations: 1.66 MB / 4.005 GB, free: 14.93 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003773/11.29, allocations: 1.674 MB / 4.007 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/11.29, allocations: 3.156 kB / 4.007 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008442/11.3, allocations: 4.102 MB / 4.011 GB, free: 14.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003197/11.3, allocations: 6.276 MB / 4.017 GB, free: 24.12 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/11.3, allocations: 13.62 kB / 4.017 GB, free: 24.12 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00859/11.31, allocations: 2.633 MB / 4.02 GB, free: 24.03 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/11.31, allocations: 331.3 kB / 4.02 GB, free: 24.03 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007021/11.32, allocations: 4.252 MB / 4.024 GB, free: 23.43 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002928/11.32, allocations: 254.8 kB / 4.025 GB, free: 23.4 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004313/11.32, allocations: 104.8 kB / 4.025 GB, free: 23.4 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/11.32, allocations: 0 / 4.025 GB, free: 23.4 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007547/11.33, allocations: 3.534 MB / 4.028 GB, free: 23.32 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.356e-05/11.33, allocations: 15.81 kB / 4.028 GB, free: 23.32 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00738/11.34, allocations: 2.13 MB / 4.03 GB, free: 23.25 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/11.34, allocations: 367.2 kB / 4.031 GB, free: 23.25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004347/11.34, allocations: 3.241 MB / 4.034 GB, free: 22.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002573/11.35, allocations: 237.7 kB / 4.034 GB, free: 22.66 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004222/11.35, allocations: 104.7 kB / 4.034 GB, free: 22.66 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.0009532/11.35, allocations: 155.8 kB / 4.034 GB, free: 22.55 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005507/11.35, allocations: 145.6 kB / 4.034 GB, free: 22.48 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008868/11.36, allocations: 5.653 MB / 4.04 GB, free: 22.04 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.503e-05/11.36, allocations: 72.16 kB / 4.04 GB, free: 22.04 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.728e-05/11.36, allocations: 3.031 kB / 4.04 GB, free: 22.04 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006739/11.36, allocations: 5.115 MB / 4.045 GB, free: 21.32 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01508/11.38, allocations: 8.407 MB / 4.053 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.218e-05/11.38, allocations: 7.594 kB / 4.053 GB, free: 20.64 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001706/11.38, allocations: 395.5 kB / 4.053 GB, free: 20.63 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001053/11.38, allocations: 424.7 kB / 4.054 GB, free: 20.57 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000219/11.38, allocations: 33.98 kB / 4.054 GB, free: 20.57 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002551/11.38, allocations: 3.361 MB / 4.057 GB, free: 17.95 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/11.38, allocations: 1.969 kB / 4.057 GB, free: 17.95 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009211/11.39, allocations: 6.248 MB / 4.063 GB, free: 16.95 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00144/11.4, allocations: 0.567 MB / 4.064 GB, free: 16.53 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005497/11.4, allocations: 15.84 kB / 4.064 GB, free: 16.52 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/11.4, allocations: 165.2 kB / 4.064 GB, free: 16.41 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003261/11.4, allocations: 163.6 kB / 4.064 GB, free: 16.33 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001629/11.4, allocations: 72.2 kB / 4.064 GB, free: 16.29 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001185/11.4, allocations: 0.6618 MB / 4.065 GB, free: 15.87 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.402e-06/11.4, allocations: 0 / 4.065 GB, free: 15.87 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01123/11.41, allocations: 2.189 MB / 4.067 GB, free: 13.98 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.01141/11.42, allocations: 2.077 MB / 4.069 GB, free: 12.55 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.008803/11.43, allocations: 4.828 MB / 4.074 GB, free: 9.738 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 9.197e-06/11.43, allocations: 4.25 kB / 4.074 GB, free: 9.734 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003229/11.43, allocations: 2.083 MB / 4.076 GB, free: 7.895 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003466/11.44, allocations: 0.5596 MB / 4.076 GB, free: 7.508 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01038/11.45, allocations: 5.077 MB / 4.081 GB, free: 3.082 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002093/11.45, allocations: 1.915 MB / 4.083 GB, free: 1.527 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.004882/11.46, allocations: 1.696 MB / 4.085 GB, free: 0.5117 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007399/11.46, allocations: 133.8 kB / 4.085 GB, free: 400 kB / 0.573 GB Notification: Performance of SimCode: time 7.91e-07/11.46, allocations: 0 / 4.085 GB, free: 400 kB / 0.573 GB Notification: Performance of Templates: time 0.4878/11.94, allocations: 72.22 MB / 4.155 GB, free: 97.36 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