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.0009185/0.0009187, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.254/1.254, allocations: 205.2 MB / 218.9 MB, free: 9.148 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007802/0.0007803, allocations: 98.52 kB / 267.1 MB, free: 9.266 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.3236/0.3236, allocations: 43.47 MB / 358.6 MB, free: 52.29 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.796e-05, allocations: 4 kB / 425.3 MB, free: 8.902 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1015, allocations: 58.84 MB / 484.2 MB, free: 13.95 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.448/6.549, allocations: 2.833 GB / 3.306 GB, free: 54.59 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002169/6.549, allocations: 79.25 kB / 3.306 GB, free: 54.52 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 1.916/8.465, allocations: 0.4914 GB / 3.797 GB, free: 49.49 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.503e-06/8.465, allocations: 0.7812 kB / 3.797 GB, free: 49.49 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001308/8.465, allocations: 40.19 kB / 3.797 GB, free: 49.49 MB / 0.5105 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.01333/8.478, allocations: 2.996 MB / 3.8 GB, free: 48.36 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/8.479, allocations: 8.562 kB / 3.8 GB, free: 48.36 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005282/8.484, allocations: 0.7079 MB / 3.801 GB, free: 48.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00541/8.489, allocations: 1.576 MB / 3.803 GB, free: 47.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002544/8.49, allocations: 168.9 kB / 3.803 GB, free: 47.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004336/8.49, allocations: 183 kB / 3.803 GB, free: 47.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006806/8.497, allocations: 3.522 MB / 3.806 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.684e-05/8.497, allocations: 9 kB / 3.806 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002178/8.497, allocations: 78.91 kB / 3.807 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001437/8.497, allocations: 173 kB / 3.807 GB, free: 47.43 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005434/8.503, allocations: 3.33 MB / 3.81 GB, free: 47.41 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.01696/8.52, allocations: 14.13 MB / 3.824 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003791/8.523, allocations: 2.147 MB / 3.826 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001224/8.525, allocations: 1.084 MB / 3.827 GB, free: 39.47 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1101/8.635, allocations: 63.65 MB / 3.889 GB, free: 31.68 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004323/8.639, allocations: 1.691 MB / 3.891 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=154): time 3.907e-06/8.639, allocations: 0 / 3.891 GB, free: 31.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=174): time 0.01514/8.654, allocations: 8.153 MB / 3.899 GB, free: 29.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/8.655, allocations: 276.4 kB / 3.899 GB, free: 29.61 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001474/8.656, allocations: 1.179 MB / 3.9 GB, free: 29.43 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001575/8.656, allocations: 59.48 kB / 3.9 GB, free: 29.4 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006124/8.657, allocations: 0.825 MB / 3.901 GB, free: 29.01 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004159/8.657, allocations: 0.593 MB / 3.902 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/8.657, allocations: 41.69 kB / 3.902 GB, free: 28.63 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001743/8.658, allocations: 394.3 kB / 3.902 GB, free: 28.33 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001353/8.659, allocations: 1.142 MB / 3.903 GB, free: 28.32 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001659/8.661, allocations: 1.698 MB / 3.905 GB, free: 27.68 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/8.662, allocations: 1.374 MB / 3.906 GB, free: 27.63 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.776e-06/8.662, allocations: 7.688 kB / 3.906 GB, free: 27.63 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.004967/8.667, allocations: 3.979 MB / 3.91 GB, free: 26.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.00279/8.67, allocations: 6.271 MB / 3.916 GB, free: 19.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.279e-05/8.67, allocations: 14.75 kB / 3.916 GB, free: 19.81 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0131/8.683, allocations: 3.468 MB / 3.919 GB, free: 19.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/8.684, allocations: 340.8 kB / 3.92 GB, free: 19.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004628/8.689, allocations: 3.814 MB / 3.924 GB, free: 17.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002467/8.692, allocations: 272.6 kB / 3.924 GB, free: 17.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002077/8.692, allocations: 108.3 kB / 3.924 GB, free: 17.53 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/8.692, allocations: 9.094 kB / 3.924 GB, free: 17.53 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005106/8.697, allocations: 3.578 MB / 3.927 GB, free: 16.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.686e-05/8.697, allocations: 19.25 kB / 3.927 GB, free: 16.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007335/8.704, allocations: 2.264 MB / 3.93 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/8.706, allocations: 368.1 kB / 3.93 GB, free: 15.92 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003651/8.709, allocations: 3.101 MB / 3.933 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002502/8.712, allocations: 265.5 kB / 3.933 GB, free: 13.12 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003705/8.712, allocations: 102.7 kB / 3.933 GB, free: 13.03 MB / 0.5417 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.0008661/8.713, allocations: 242.3 kB / 3.934 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004997/8.714, allocations: 162 kB / 3.934 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008088/8.722, allocations: 6.765 MB / 3.94 GB, free: 6.711 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.478e-05/8.722, allocations: 78.2 kB / 3.94 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/8.722, allocations: 3.328 kB / 3.94 GB, free: 6.66 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00534/8.727, allocations: 5.436 MB / 3.946 GB, free: 1.66 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3572/9.085, allocations: 9.565 MB / 3.955 GB, free: 78.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/9.085, allocations: 2.625 kB / 3.955 GB, free: 78.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001715/9.086, allocations: 436.6 kB / 3.955 GB, free: 78.21 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001329/9.088, allocations: 445.2 kB / 3.956 GB, free: 78.18 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001821/9.088, allocations: 64.66 kB / 3.956 GB, free: 78.18 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/9.089, allocations: 3.211 MB / 3.959 GB, free: 75.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/9.089, allocations: 4.922 kB / 3.959 GB, free: 75.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007636/9.097, allocations: 6.742 MB / 3.966 GB, free: 75.14 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/9.099, allocations: 0.7676 MB / 3.966 GB, free: 75.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/9.099, allocations: 51.28 kB / 3.966 GB, free: 75.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/9.101, allocations: 214 kB / 3.967 GB, free: 75.05 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/9.101, allocations: 188.5 kB / 3.967 GB, free: 75.04 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/9.101, allocations: 65.31 kB / 3.967 GB, free: 75.04 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001669/9.103, allocations: 1.221 MB / 3.968 GB, free: 74.93 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/9.103, allocations: 0 / 3.968 GB, free: 74.93 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008755/9.112, allocations: 2.363 MB / 3.97 GB, free: 74.93 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 () * 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.009729/9.121, allocations: 2.02 MB / 3.972 GB, free: 74.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008108/9.129, allocations: 5.123 MB / 3.977 GB, free: 74.72 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/9.13, allocations: 2.344 kB / 3.977 GB, free: 74.72 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003059/9.133, allocations: 2.27 MB / 3.98 GB, free: 74.71 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00412/9.137, allocations: 0.7896 MB / 3.98 GB, free: 74.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00845/9.145, allocations: 5.675 MB / 3.986 GB, free: 73.7 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00145/9.147, allocations: 2.062 MB / 3.988 GB, free: 72.95 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.003903/9.151, allocations: 1.614 MB / 3.99 GB, free: 72.93 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005458/9.151, allocations: 142.7 kB / 3.99 GB, free: 72.92 MB / 0.5417 GB Notification: Performance of SimCode: time 1.342e-06/9.151, allocations: 0 / 3.99 GB, free: 72.92 MB / 0.5417 GB Notification: Performance of Templates: time 0.1106/9.262, allocations: 85.2 MB / 4.073 GB, free: 69.07 MB / 0.5417 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