Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009882/0.0009881, allocations: 198 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.165/1.165, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008396/0.0008396, allocations: 101.1 kB / 297.3 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.276/0.276, allocations: 45.23 MB / 394.7 MB, free: 31.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002165/0.0002165, allocations: 4 kB / 468.4 MB, free: 7.691 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2505, allocations: 63.25 MB / 0.5192 GB, free: 37.4 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.427/5.678, allocations: 2.828 GB / 3.347 GB, free: 60.17 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002483/5.678, allocations: 82.28 kB / 3.347 GB, free: 60.13 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 2.472/8.151, allocations: 0.7536 GB / 4.1 GB, free: 44.5 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.323e-06/8.151, allocations: 0 / 4.1 GB, free: 44.5 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.29e-05/8.151, allocations: 33.45 kB / 4.101 GB, free: 44.5 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01135/8.162, allocations: 2.918 MB / 4.103 GB, free: 43.28 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/8.162, allocations: 7.156 kB / 4.103 GB, free: 43.28 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003087/8.165, allocations: 485.5 kB / 4.104 GB, free: 43.21 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/8.168, allocations: 1.15 MB / 4.105 GB, free: 42.88 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001464/8.168, allocations: 145.2 kB / 4.105 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001567/8.168, allocations: 97.39 kB / 4.105 GB, free: 42.82 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003378/8.171, allocations: 1.885 MB / 4.107 GB, free: 42.47 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.745e-05/8.171, allocations: 12.98 kB / 4.107 GB, free: 42.47 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/8.171, allocations: 42.05 kB / 4.107 GB, free: 42.47 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.782e-05/8.172, allocations: 78.06 kB / 4.107 GB, free: 42.46 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003198/8.175, allocations: 1.782 MB / 4.109 GB, free: 42.46 MB / 0.5573 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.008891/8.184, allocations: 8.536 MB / 4.117 GB, free: 37.56 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00271/8.186, allocations: 1.404 MB / 4.119 GB, free: 37.25 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.11/8.296, allocations: 70.24 MB / 4.187 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002486/8.299, allocations: 0.8959 MB / 4.188 GB, free: 22.73 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=82): time 4.448e-06/8.299, allocations: 1.781 kB / 4.188 GB, free: 22.73 MB / 0.5886 GB Notification: Performance of matching and sorting (n=86): time 0.01214/8.311, allocations: 4.626 MB / 4.193 GB, free: 21.5 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/8.311, allocations: 400.3 kB / 4.193 GB, free: 21.04 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001465/8.313, allocations: 0.9335 MB / 4.194 GB, free: 20.88 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 9.828e-05/8.313, allocations: 44.67 kB / 4.194 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004107/8.313, allocations: 0.5683 MB / 4.194 GB, free: 20.59 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/8.314, allocations: 299.5 kB / 4.195 GB, free: 20.4 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.165e-05/8.314, allocations: 22.41 kB / 4.195 GB, free: 20.4 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001292/8.314, allocations: 359.8 kB / 4.195 GB, free: 20.09 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009905/8.315, allocations: 0.5408 MB / 4.196 GB, free: 20.09 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001137/8.316, allocations: 1.003 MB / 4.197 GB, free: 19.51 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/8.317, allocations: 0.708 MB / 4.197 GB, free: 19.48 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/8.317, allocations: 3.906 kB / 4.197 GB, free: 19.48 MB / 0.5886 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.003267/8.32, allocations: 1.927 MB / 4.199 GB, free: 19.33 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002386/8.323, allocations: 5.41 MB / 4.205 GB, free: 29.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/8.323, allocations: 11 kB / 4.205 GB, free: 29.67 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005718/8.329, allocations: 1.133 MB / 4.206 GB, free: 29.63 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008682/8.329, allocations: 248.4 kB / 4.206 GB, free: 29.62 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001954/8.331, allocations: 1.503 MB / 4.207 GB, free: 29.08 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001448/8.333, allocations: 132.6 kB / 4.207 GB, free: 29.06 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/8.333, allocations: 70.62 kB / 4.208 GB, free: 29.06 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.045e-05/8.333, allocations: 3.875 kB / 4.208 GB, free: 29.06 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003028/8.336, allocations: 1.679 MB / 4.209 GB, free: 29.01 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.371e-05/8.336, allocations: 12.53 kB / 4.209 GB, free: 29.01 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/8.338, allocations: 379.3 kB / 4.21 GB, free: 28.99 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009516/8.339, allocations: 284.1 kB / 4.21 GB, free: 28.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001155/8.34, allocations: 1.059 MB / 4.211 GB, free: 28.45 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001254/8.341, allocations: 124 kB / 4.211 GB, free: 28.44 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001251/8.341, allocations: 77.45 kB / 4.211 GB, free: 28.43 MB / 0.6042 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: 62 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0008514/8.342, allocations: 469 kB / 4.211 GB, free: 28.24 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002475/8.342, allocations: 126.5 kB / 4.212 GB, free: 28.17 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004764/8.347, allocations: 4.065 MB / 4.216 GB, free: 27.73 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-05/8.347, allocations: 46.75 kB / 4.216 GB, free: 27.73 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/8.347, allocations: 0 / 4.216 GB, free: 27.73 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.334e-05/8.347, allocations: 8.953 kB / 4.216 GB, free: 27.73 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006423/8.354, allocations: 5.551 MB / 4.221 GB, free: 27.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/8.354, allocations: 2.75 kB / 4.221 GB, free: 27.09 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006662/8.354, allocations: 175.2 kB / 4.221 GB, free: 27.09 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005873/8.36, allocations: 1.555 MB / 4.223 GB, free: 27.01 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.681e-05/8.36, allocations: 30.55 kB / 4.223 GB, free: 27.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00151/8.362, allocations: 2.1 MB / 4.225 GB, free: 25.94 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/8.362, allocations: 0 / 4.225 GB, free: 25.94 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00451/8.366, allocations: 3.995 MB / 4.229 GB, free: 25.34 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009968/8.367, allocations: 0.5247 MB / 4.229 GB, free: 25.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004048/8.368, allocations: 20.34 kB / 4.229 GB, free: 25.1 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/8.369, allocations: 109.2 kB / 4.229 GB, free: 25.08 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/8.369, allocations: 79.44 kB / 4.229 GB, free: 25.07 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/8.369, allocations: 35.33 kB / 4.229 GB, free: 25.07 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001663/8.371, allocations: 1.056 MB / 4.231 GB, free: 24.96 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.7e-07/8.371, allocations: 0 / 4.231 GB, free: 24.96 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008294/8.379, allocations: 2.086 MB / 4.233 GB, free: 24.64 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].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 (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01057/8.39, allocations: 2.371 MB / 4.235 GB, free: 24.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004825/8.395, allocations: 2.47 MB / 4.237 GB, free: 24 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/8.395, allocations: 0 / 4.237 GB, free: 24 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001461/8.396, allocations: 1.048 MB / 4.238 GB, free: 23.98 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003213/8.399, allocations: 0.6369 MB / 4.239 GB, free: 23.94 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005954/8.405, allocations: 4.413 MB / 4.243 GB, free: 21.98 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001246/8.406, allocations: 1.478 MB / 4.245 GB, free: 21.23 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002129/8.409, allocations: 0.9888 MB / 4.246 GB, free: 21.18 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003547/8.409, allocations: 101.8 kB / 4.246 GB, free: 21.18 MB / 0.6042 GB Notification: Performance of SimCode: time 1.022e-06/8.409, allocations: 1.875 kB / 4.246 GB, free: 21.18 MB / 0.6042 GB Notification: Performance of Templates: time 0.3668/8.776, allocations: 64.83 MB / 4.309 GB, free: 88.99 MB / 0.6042 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/LumpedPipeInitialization/LumpedPipeInitialization.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches