Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.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.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001467/0.001466, 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.557/1.557, allocations: 221.5 MB / 230.7 MB, free: 7.586 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.001125/0.001125, allocations: 99.2 kB / 281.6 MB, free: 5.332 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.2609/0.2609, allocations: 44.16 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.438e-05/1.441e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.1731, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.259/8.433, allocations: 2.826 GB / 3.321 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/8.433, allocations: 77.66 kB / 3.321 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.535/10.97, allocations: 0.7451 GB / 4.066 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.864e-06/10.97, allocations: 0 / 4.066 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001971/10.97, allocations: 34.5 kB / 4.066 GB, free: 10.6 MB / 0.5417 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.01271/10.98, allocations: 2.754 MB / 4.068 GB, free: 7.809 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.932e-05/10.98, allocations: 15.98 kB / 4.068 GB, free: 7.793 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004026/10.98, allocations: 478.2 kB / 4.069 GB, free: 7.324 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003842/10.99, allocations: 1.134 MB / 4.07 GB, free: 6.168 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002323/10.99, allocations: 109.4 kB / 4.07 GB, free: 6.047 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005602/10.99, allocations: 56 kB / 4.07 GB, free: 5.992 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003228/10.99, allocations: 1.335 MB / 4.072 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003574/11, allocations: 1.47 MB / 4.073 GB, free: 3.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.036e-05/11, allocations: 11.88 kB / 4.073 GB, free: 3.059 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002461/11, allocations: 8 kB / 4.073 GB, free: 3.051 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001371/11, allocations: 77.92 kB / 4.073 GB, free: 2.977 MB / 0.5417 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.6599/11.66, allocations: 135.2 MB / 4.205 GB, free: 18.12 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001628/11.66, allocations: 0.9183 MB / 4.206 GB, free: 17.91 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/11.66, allocations: 372.6 kB / 4.206 GB, free: 17.9 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03058/11.69, allocations: 16.69 MB / 4.223 GB, free: 23.11 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/11.69, allocations: 0.5068 MB / 4.223 GB, free: 23 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=66): time 2.795e-06/11.69, allocations: 3.625 kB / 4.223 GB, free: 23 MB / 0.6042 GB Notification: Performance of matching and sorting (n=70): time 0.008584/11.7, allocations: 3.123 MB / 4.226 GB, free: 22.29 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/11.7, allocations: 350.1 kB / 4.227 GB, free: 21.88 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/11.7, allocations: 0.8367 MB / 4.227 GB, free: 21.73 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 7.697e-05/11.7, allocations: 29.58 kB / 4.227 GB, free: 21.7 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004494/11.7, allocations: 0.6185 MB / 4.228 GB, free: 21.44 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002118/11.7, allocations: 249.8 kB / 4.228 GB, free: 21.32 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.792e-05/11.7, allocations: 0 / 4.228 GB, free: 21.32 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.000164/11.7, allocations: 358.7 kB / 4.229 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006487/11.7, allocations: 464.1 kB / 4.229 GB, free: 21.01 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008463/11.7, allocations: 0.9182 MB / 4.23 GB, free: 20.44 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002749/11.71, allocations: 0.9785 MB / 4.231 GB, free: 20.41 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.077e-06/11.71, allocations: 3.938 kB / 4.231 GB, free: 20.41 MB / 0.6042 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004416/11.71, allocations: 2.022 MB / 4.233 GB, free: 20.27 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.002078/11.71, allocations: 5.394 MB / 4.238 GB, free: 14.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.703e-05/11.71, allocations: 22.58 kB / 4.238 GB, free: 14.61 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001927/11.71, allocations: 0.598 MB / 4.239 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009848/11.72, allocations: 245.8 kB / 4.239 GB, free: 14.58 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002635/11.72, allocations: 1.619 MB / 4.241 GB, free: 14.04 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/11.72, allocations: 119.5 kB / 4.241 GB, free: 14.03 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001365/11.72, allocations: 73.55 kB / 4.241 GB, free: 14.03 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/11.72, allocations: 2.625 kB / 4.241 GB, free: 14.03 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003698/11.72, allocations: 1.655 MB / 4.242 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/11.72, allocations: 12.81 kB / 4.242 GB, free: 13.98 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001066/11.72, allocations: 339.9 kB / 4.243 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000959/11.73, allocations: 280.7 kB / 4.243 GB, free: 13.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001071/11.73, allocations: 1.031 MB / 4.244 GB, free: 13.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/11.73, allocations: 107.1 kB / 4.244 GB, free: 13.42 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/11.73, allocations: 71.19 kB / 4.244 GB, free: 13.42 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.0004741/11.73, allocations: 165.8 kB / 4.244 GB, free: 13.31 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002066/11.73, allocations: 111.8 kB / 4.244 GB, free: 13.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004103/11.73, allocations: 2.902 MB / 4.247 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-05/11.73, allocations: 29.89 kB / 4.247 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/11.73, allocations: 11.33 kB / 4.247 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/11.73, allocations: 3.141 kB / 4.247 GB, free: 13.02 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/11.74, allocations: 4.575 MB / 4.252 GB, free: 12.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/11.74, allocations: 3.594 kB / 4.252 GB, free: 12.33 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005641/11.74, allocations: 129.5 kB / 4.252 GB, free: 12.33 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004191/11.74, allocations: 1.535 MB / 4.253 GB, free: 12.25 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.076e-05/11.74, allocations: 12.66 kB / 4.253 GB, free: 12.25 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002102/11.75, allocations: 2.268 MB / 4.256 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/11.75, allocations: 0 / 4.256 GB, free: 11.18 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004043/11.75, allocations: 3.322 MB / 4.259 GB, free: 10.78 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007453/11.75, allocations: 352.2 kB / 4.259 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001778/11.75, allocations: 6.719 kB / 4.259 GB, free: 10.61 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000775/11.75, allocations: 72.42 kB / 4.259 GB, free: 10.6 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/11.75, allocations: 62.23 kB / 4.259 GB, free: 10.6 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.52e-05/11.75, allocations: 35.78 kB / 4.259 GB, free: 10.59 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 0.0008334/11.75, allocations: 0.6093 MB / 4.26 GB, free: 10.48 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.5e-07/11.75, allocations: 0 / 4.26 GB, free: 10.48 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.007532/11.76, allocations: 1.919 MB / 4.262 GB, free: 10.48 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.009779/11.77, allocations: 2.501 MB / 4.264 GB, free: 10.15 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.003935/11.77, allocations: 2.095 MB / 4.266 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.351e-06/11.77, allocations: 0 / 4.266 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0009832/11.78, allocations: 0.8094 MB / 4.267 GB, free: 10.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/11.78, allocations: 463.6 kB / 4.268 GB, free: 10.07 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003543/11.78, allocations: 2.315 MB / 4.27 GB, free: 9.477 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007814/11.78, allocations: 1.342 MB / 4.271 GB, free: 8.391 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 0.002172/11.78, allocations: 1.2 MB / 4.272 GB, free: 7.707 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002168/11.79, allocations: 83.78 kB / 4.272 GB, free: 7.637 MB / 0.6042 GB Notification: Performance of SimCode: time 9.72e-07/11.79, allocations: 0 / 4.272 GB, free: 7.637 MB / 0.6042 GB Notification: Performance of Templates: time 0.4564/12.24, allocations: 54.65 MB / 4.326 GB, free: 113.9 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches