Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009054/0.0009053, allocations: 176.7 kB / 8.008 MB, free: 1.066 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.483/1.483, allocations: 205.3 MB / 213.7 MB, free: 1.734 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.0008397/0.0008396, allocations: 82.22 kB / 261.7 MB, free: 1.688 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.1909/0.1909, allocations: 43.49 MB / 353.2 MB, free: 288 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.6e-05/1.604e-05, allocations: 4 kB / 418.3 MB, free: 28.56 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 58.85 MB / 477.1 MB, free: 1.664 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.886/5.986, allocations: 2.821 GB / 3.287 GB, free: 139 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002585/5.987, allocations: 83.45 kB / 3.287 GB, free: 138.9 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 3.098/9.084, allocations: 0.7376 GB / 4.025 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.014e-06/9.084, allocations: 0 / 4.025 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001202/9.085, allocations: 33.88 kB / 4.025 GB, free: 46.76 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01166/9.096, allocations: 2.759 MB / 4.027 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/9.096, allocations: 11.47 kB / 4.027 GB, free: 45.79 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003853/9.1, allocations: 479.3 kB / 4.028 GB, free: 45.72 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003336/9.104, allocations: 1.132 MB / 4.029 GB, free: 45.4 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/9.104, allocations: 109.8 kB / 4.029 GB, free: 45.34 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/9.104, allocations: 57.62 kB / 4.029 GB, free: 45.33 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002231/9.106, allocations: 1.345 MB / 4.03 GB, free: 45.33 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002036/9.108, allocations: 1.473 MB / 4.032 GB, free: 44.99 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.236e-05/9.108, allocations: 2.25 kB / 4.032 GB, free: 44.99 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/9.108, allocations: 3.781 kB / 4.032 GB, free: 44.99 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.853e-05/9.109, allocations: 79 kB / 4.032 GB, free: 44.99 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.2705/9.379, allocations: 135.2 MB / 4.164 GB, free: 24.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003147/9.382, allocations: 0.9255 MB / 4.165 GB, free: 24.55 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001119/9.383, allocations: 375.7 kB / 4.165 GB, free: 24.54 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03602/9.419, allocations: 16.69 MB / 4.182 GB, free: 13.74 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001161/9.421, allocations: 0.4962 MB / 4.182 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=66): time 3.667e-06/9.421, allocations: 0 / 4.182 GB, free: 13.63 MB / 0.5886 GB Notification: Performance of matching and sorting (n=70): time 0.01046/9.431, allocations: 3.127 MB / 4.185 GB, free: 12.87 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001816/9.431, allocations: 344.5 kB / 4.185 GB, free: 12.46 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001593/9.433, allocations: 0.8442 MB / 4.186 GB, free: 12.3 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001072/9.433, allocations: 29.7 kB / 4.186 GB, free: 12.26 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005789/9.434, allocations: 0.627 MB / 4.187 GB, free: 11.95 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002392/9.434, allocations: 241.5 kB / 4.187 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/9.434, allocations: 0 / 4.187 GB, free: 11.79 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001624/9.434, allocations: 364.5 kB / 4.187 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/9.435, allocations: 461 kB / 4.188 GB, free: 11.48 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001024/9.436, allocations: 0.9235 MB / 4.189 GB, free: 10.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006518/9.443, allocations: 1.648 MB / 4.19 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.327e-05/9.443, allocations: 3.969 kB / 4.19 GB, free: 10.85 MB / 0.5886 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.008392/9.451, allocations: 2.69 MB / 4.193 GB, free: 10.71 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.002687/9.454, allocations: 5.403 MB / 4.198 GB, free: 21.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.901e-05/9.454, allocations: 11.84 kB / 4.198 GB, free: 21.04 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002973/9.457, allocations: 0.7141 MB / 4.199 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008799/9.458, allocations: 248.2 kB / 4.199 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002679/9.46, allocations: 1.614 MB / 4.201 GB, free: 20.47 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/9.462, allocations: 125.3 kB / 4.201 GB, free: 20.45 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001787/9.462, allocations: 70.59 kB / 4.201 GB, free: 20.45 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.392e-05/9.462, allocations: 3.594 kB / 4.201 GB, free: 20.45 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008566/9.471, allocations: 2.329 MB / 4.203 GB, free: 20.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.379e-05/9.471, allocations: 14.75 kB / 4.203 GB, free: 20.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001239/9.472, allocations: 336.6 kB / 4.204 GB, free: 20.37 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/9.473, allocations: 277.5 kB / 4.204 GB, free: 20.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001277/9.475, allocations: 1.041 MB / 4.205 GB, free: 19.84 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/9.476, allocations: 106.5 kB / 4.205 GB, free: 19.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/9.477, allocations: 70.34 kB / 4.205 GB, free: 19.82 MB / 0.6042 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: 62 * Number of states: 0 () * Number of discrete variables: 19 ($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,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete 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.000612/9.477, allocations: 156.5 kB / 4.205 GB, free: 19.71 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/9.478, allocations: 109.5 kB / 4.205 GB, free: 19.65 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00496/9.483, allocations: 2.903 MB / 4.208 GB, free: 19.37 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.192e-05/9.483, allocations: 32.47 kB / 4.208 GB, free: 19.37 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/9.483, allocations: 0.5 kB / 4.208 GB, free: 19.37 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/9.483, allocations: 3.516 kB / 4.208 GB, free: 19.37 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006446/9.489, allocations: 4.583 MB / 4.213 GB, free: 18.66 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/9.489, allocations: 7.906 kB / 4.213 GB, free: 18.66 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/9.49, allocations: 127.8 kB / 4.213 GB, free: 18.66 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004109/9.494, allocations: 1.526 MB / 4.214 GB, free: 18.15 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.6e-05/9.494, allocations: 18.08 kB / 4.214 GB, free: 18.14 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00214/9.496, allocations: 2.264 MB / 4.217 GB, free: 16.5 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/9.496, allocations: 8.188 kB / 4.217 GB, free: 16.49 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004436/9.501, allocations: 3.327 MB / 4.22 GB, free: 14.65 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008785/9.502, allocations: 345 kB / 4.22 GB, free: 14.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004351/9.502, allocations: 4 kB / 4.22 GB, free: 14.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001147/9.503, allocations: 82.56 kB / 4.22 GB, free: 14.32 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000132/9.503, allocations: 64.28 kB / 4.22 GB, free: 14.29 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.924e-05/9.503, allocations: 29.72 kB / 4.22 GB, free: 14.27 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.001125/9.505, allocations: 0.6028 MB / 4.221 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.6e-07/9.505, allocations: 0 / 4.221 GB, free: 13.89 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.009279/9.514, allocations: 1.918 MB / 4.223 GB, free: 12.11 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 20 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse15.phase,$cse15.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.01173/9.526, allocations: 2.5 MB / 4.225 GB, free: 10.2 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.004614/9.53, allocations: 2.09 MB / 4.227 GB, free: 9.031 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.149e-05/9.53, allocations: 4 kB / 4.227 GB, free: 9.027 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.001266/9.532, allocations: 0.8048 MB / 4.228 GB, free: 8.637 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003004/9.535, allocations: 466.5 kB / 4.228 GB, free: 8.387 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/9.539, allocations: 2.321 MB / 4.231 GB, free: 6.727 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001124/9.541, allocations: 1.346 MB / 4.232 GB, free: 5.625 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002792/9.543, allocations: 1.207 MB / 4.233 GB, free: 4.938 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003041/9.544, allocations: 84.05 kB / 4.233 GB, free: 4.871 MB / 0.6042 GB Notification: Performance of SimCode: time 1.312e-06/9.544, allocations: 0 / 4.233 GB, free: 4.871 MB / 0.6042 GB Notification: Performance of Templates: time 0.5034/10.05, allocations: 54.41 MB / 4.286 GB, free: 120.3 MB / 0.6042 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/LumpedPipeInitialization/LumpedPipeInitialization.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches