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.001731/0.001731, allocations: 175.7 kB / 16.76 MB, free: 5.02 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.578/1.578, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0008136/0.0008137, allocations: 94.39 kB / 271.3 MB, free: 8.242 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.4093/0.4093, allocations: 43.56 MB / 363.1 MB, free: 52.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004006/0.0004006, allocations: 12 kB / 432.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1321, allocations: 58.84 MB / 491.5 MB, free: 10.28 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.969/6.101, allocations: 2.834 GB / 3.314 GB, free: 142 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002525/6.102, allocations: 83.33 kB / 3.314 GB, free: 142 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.47/7.572, allocations: 475.5 MB / 3.778 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.256e-06/7.572, allocations: 0 / 3.778 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001057/7.572, allocations: 47.72 kB / 3.778 GB, free: 39.62 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.009529/7.581, allocations: 3.166 MB / 3.781 GB, free: 37.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/7.582, allocations: 7.562 kB / 3.781 GB, free: 37.99 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004285/7.586, allocations: 0.7074 MB / 3.782 GB, free: 37.82 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02357/7.609, allocations: 15.78 MB / 3.797 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/7.61, allocations: 168.9 kB / 3.798 GB, free: 33.84 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003573/7.61, allocations: 189.8 kB / 3.798 GB, free: 33.78 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006116/7.616, allocations: 3.591 MB / 3.801 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.844e-05/7.616, allocations: 14.58 kB / 3.801 GB, free: 32.31 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002085/7.616, allocations: 76.91 kB / 3.801 GB, free: 32.26 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001344/7.617, allocations: 172 kB / 3.802 GB, free: 32.23 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00613/7.623, allocations: 3.516 MB / 3.805 GB, free: 31.18 MB / 0.5105 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.01459/7.637, allocations: 14.1 MB / 3.819 GB, free: 21.08 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/7.642, allocations: 2.298 MB / 3.821 GB, free: 20.27 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00168/7.643, allocations: 1.205 MB / 3.822 GB, free: 19.84 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3866/8.03, allocations: 63.47 MB / 3.884 GB, free: 46.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004225/8.034, allocations: 1.737 MB / 3.886 GB, free: 46.72 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=154): time 6.322e-06/8.034, allocations: 0.5625 kB / 3.886 GB, free: 46.72 MB / 0.5261 GB Notification: Performance of matching and sorting (n=174): time 0.01884/8.053, allocations: 9.453 MB / 3.895 GB, free: 45.39 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.401e-05/8.053, allocations: 286 kB / 3.895 GB, free: 45.08 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/8.055, allocations: 1.319 MB / 3.897 GB, free: 44.91 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001836/8.055, allocations: 60.98 kB / 3.897 GB, free: 44.88 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005527/8.056, allocations: 0.8232 MB / 3.897 GB, free: 44.57 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004648/8.056, allocations: 0.5988 MB / 3.898 GB, free: 44.27 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/8.056, allocations: 44.5 kB / 3.898 GB, free: 44.27 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00011/8.056, allocations: 392.3 kB / 3.898 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/8.058, allocations: 1.28 MB / 3.9 GB, free: 43.96 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002255/8.061, allocations: 1.845 MB / 3.902 GB, free: 43.34 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004309/8.065, allocations: 3.137 MB / 3.905 GB, free: 42.74 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/8.065, allocations: 10.78 kB / 3.905 GB, free: 42.74 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.007563/8.073, allocations: 4.329 MB / 3.909 GB, free: 42.57 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002863/8.073, allocations: 0.5627 MB / 3.909 GB, free: 41.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.316e-05/8.073, allocations: 16.94 kB / 3.909 GB, free: 41.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0145/8.087, allocations: 3.678 MB / 3.913 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/8.089, allocations: 326.5 kB / 3.913 GB, free: 41.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006955/8.096, allocations: 4.058 MB / 3.917 GB, free: 41.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/8.099, allocations: 272.8 kB / 3.918 GB, free: 41.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002426/8.099, allocations: 103.3 kB / 3.918 GB, free: 41.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/8.099, allocations: 7.969 kB / 3.918 GB, free: 41.29 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007476/8.106, allocations: 3.938 MB / 3.921 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.592e-05/8.106, allocations: 16.08 kB / 3.921 GB, free: 41.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00872/8.115, allocations: 2.435 MB / 3.924 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/8.117, allocations: 365.4 kB / 3.924 GB, free: 41.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004431/8.121, allocations: 3.344 MB / 3.927 GB, free: 40.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002275/8.123, allocations: 261.4 kB / 3.928 GB, free: 40.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001943/8.124, allocations: 105.7 kB / 3.928 GB, free: 40.62 MB / 0.5261 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.001391/8.125, allocations: 0.6949 MB / 3.928 GB, free: 40.43 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003205/8.125, allocations: 169.4 kB / 3.929 GB, free: 40.34 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008171/8.133, allocations: 6.842 MB / 3.935 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.926e-05/8.134, allocations: 77.23 kB / 3.935 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.786e-06/8.134, allocations: 4.812 kB / 3.935 GB, free: 39.86 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006326/8.14, allocations: 5.501 MB / 3.941 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01303/8.153, allocations: 9.567 MB / 3.95 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/8.153, allocations: 0 / 3.95 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00178/8.155, allocations: 441.5 kB / 3.951 GB, free: 38.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001684/8.156, allocations: 473.4 kB / 3.951 GB, free: 38.54 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002031/8.157, allocations: 63.98 kB / 3.951 GB, free: 38.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001468/8.158, allocations: 3.219 MB / 3.954 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/8.158, allocations: 3.688 kB / 3.954 GB, free: 35.95 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009798/8.168, allocations: 7.052 MB / 3.961 GB, free: 34.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/8.17, allocations: 0.7725 MB / 3.962 GB, free: 34.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003629/8.17, allocations: 52.89 kB / 3.962 GB, free: 34.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/8.171, allocations: 206.7 kB / 3.962 GB, free: 34.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003667/8.172, allocations: 188 kB / 3.962 GB, free: 34.18 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/8.172, allocations: 61.8 kB / 3.962 GB, free: 34.17 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001647/8.174, allocations: 1.243 MB / 3.964 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.2e-07/8.174, allocations: 0.8438 kB / 3.964 GB, free: 33.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00839/8.182, allocations: 2.308 MB / 3.966 GB, free: 33.47 MB / 0.5261 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.009006/8.191, allocations: 1.945 MB / 3.968 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009621/8.201, allocations: 5.494 MB / 3.973 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/8.201, allocations: 3.5 kB / 3.973 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003108/8.204, allocations: 2.362 MB / 3.975 GB, free: 30.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004377/8.208, allocations: 0.8107 MB / 3.976 GB, free: 30.44 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01029/8.219, allocations: 8.139 MB / 3.984 GB, free: 26.27 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001305/8.22, allocations: 1.998 MB / 3.986 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003268/8.223, allocations: 1.449 MB / 3.987 GB, free: 25.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004903/8.224, allocations: 156.7 kB / 3.988 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of SimCode: time 1.223e-06/8.224, allocations: 0 / 3.988 GB, free: 25.29 MB / 0.5261 GB Notification: Performance of Templates: time 0.3728/8.597, allocations: 84.24 MB / 4.07 GB, free: 76.23 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/jenkins1/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