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.001024/0.001024, allocations: 183.1 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009457/0.0009457, allocations: 97.91 kB / 292.2 MB, free: 10.92 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.3347/0.3347, allocations: 44.22 MB / 387.5 MB, free: 38.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003191/0.0003192, allocations: 8 kB / 459.9 MB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3347, allocations: 61.9 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.477/5.812, allocations: 2.827 GB / 3.336 GB, free: 7.523 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/5.812, allocations: 91.95 kB / 3.336 GB, free: 7.434 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.846/8.659, allocations: 0.7539 GB / 4.09 GB, free: 44.96 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.464e-06/8.659, allocations: 0 / 4.09 GB, free: 44.96 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001621/8.659, allocations: 35.08 kB / 4.09 GB, free: 44.96 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.0119/8.671, allocations: 2.909 MB / 4.093 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/8.671, allocations: 6.938 kB / 4.093 GB, free: 43.32 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003749/8.675, allocations: 488.3 kB / 4.094 GB, free: 43.2 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00347/8.678, allocations: 1.145 MB / 4.095 GB, free: 42.56 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001897/8.678, allocations: 137.2 kB / 4.095 GB, free: 42.46 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004671/8.679, allocations: 98.28 kB / 4.095 GB, free: 42.44 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004701/8.683, allocations: 1.892 MB / 4.097 GB, free: 41.57 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.521e-05/8.684, allocations: 3.188 kB / 4.097 GB, free: 41.57 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002514/8.684, allocations: 44 kB / 4.097 GB, free: 41.54 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000104/8.684, allocations: 81.92 kB / 4.097 GB, free: 41.53 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003947/8.688, allocations: 1.776 MB / 4.099 GB, free: 40.94 MB / 0.5417 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.01182/8.7, allocations: 8.551 MB / 4.107 GB, free: 34.52 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003004/8.703, allocations: 1.397 MB / 4.108 GB, free: 33.87 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1407/8.843, allocations: 63.29 MB / 4.17 GB, free: 17.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003305/8.847, allocations: 0.8866 MB / 4.171 GB, free: 16.93 MB / 0.573 GB Notification: Performance of pre-optimization done (n=82): time 4.749e-06/8.847, allocations: 0 / 4.171 GB, free: 16.93 MB / 0.573 GB Notification: Performance of matching and sorting (n=86): time 0.01456/8.861, allocations: 4.628 MB / 4.175 GB, free: 12.76 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002645/8.862, allocations: 402.2 kB / 4.176 GB, free: 12.28 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001545/8.863, allocations: 0.9382 MB / 4.177 GB, free: 11.45 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001093/8.863, allocations: 41.7 kB / 4.177 GB, free: 11.4 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005584/8.864, allocations: 0.5622 MB / 4.177 GB, free: 10.89 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000331/8.864, allocations: 303.5 kB / 4.178 GB, free: 10.62 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000114/8.864, allocations: 28 kB / 4.178 GB, free: 10.59 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001867/8.865, allocations: 355.1 kB / 4.178 GB, free: 10.25 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001101/8.866, allocations: 0.537 MB / 4.179 GB, free: 9.789 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/8.867, allocations: 1.013 MB / 4.18 GB, free: 8.656 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/8.868, allocations: 0.6962 MB / 4.18 GB, free: 8.016 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/8.868, allocations: 8 kB / 4.18 GB, free: 8.008 MB / 0.573 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.00404/8.873, allocations: 1.93 MB / 4.182 GB, free: 6.266 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002367/8.875, allocations: 5.412 MB / 4.187 GB, free: 460 kB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/8.875, allocations: 12 kB / 4.187 GB, free: 448 kB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.3827/9.258, allocations: 1.288 MB / 4.189 GB, free: 77.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001386/9.259, allocations: 252.2 kB / 4.189 GB, free: 77.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002592/9.262, allocations: 1.492 MB / 4.19 GB, free: 76.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/9.264, allocations: 133.1 kB / 4.19 GB, free: 76.88 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/9.264, allocations: 69.78 kB / 4.191 GB, free: 76.88 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.461e-05/9.264, allocations: 4.281 kB / 4.191 GB, free: 76.88 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003213/9.267, allocations: 1.687 MB / 4.192 GB, free: 76.87 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/9.267, allocations: 14 kB / 4.192 GB, free: 76.87 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001548/9.269, allocations: 381.2 kB / 4.193 GB, free: 76.86 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/9.27, allocations: 284.6 kB / 4.193 GB, free: 76.86 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/9.271, allocations: 1.054 MB / 4.194 GB, free: 76.34 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/9.272, allocations: 133.6 kB / 4.194 GB, free: 76.34 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001436/9.273, allocations: 68.66 kB / 4.194 GB, free: 76.34 MB / 0.573 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.00112/9.274, allocations: 478.5 kB / 4.195 GB, free: 76.15 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/9.274, allocations: 125.8 kB / 4.195 GB, free: 76.15 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005244/9.279, allocations: 4.057 MB / 4.199 GB, free: 75.91 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.601e-05/9.279, allocations: 44.58 kB / 4.199 GB, free: 75.91 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.949e-06/9.279, allocations: 5.703 kB / 4.199 GB, free: 75.91 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/9.279, allocations: 10.34 kB / 4.199 GB, free: 75.91 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007429/9.287, allocations: 5.547 MB / 4.204 GB, free: 75.36 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.749e-05/9.287, allocations: 5.141 kB / 4.204 GB, free: 75.36 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007071/9.288, allocations: 170.4 kB / 4.204 GB, free: 75.36 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006256/9.294, allocations: 1.566 MB / 4.206 GB, free: 75.3 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/9.294, allocations: 26.3 kB / 4.206 GB, free: 75.3 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001536/9.296, allocations: 2.099 MB / 4.208 GB, free: 74.24 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/9.296, allocations: 2.062 kB / 4.208 GB, free: 74.24 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005015/9.301, allocations: 3.986 MB / 4.212 GB, free: 73.66 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001196/9.302, allocations: 0.5344 MB / 4.212 GB, free: 73.46 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002067/9.302, allocations: 21.44 kB / 4.212 GB, free: 73.46 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009078/9.303, allocations: 95.08 kB / 4.212 GB, free: 73.46 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/9.303, allocations: 77.47 kB / 4.212 GB, free: 73.46 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.682e-05/9.303, allocations: 40.89 kB / 4.212 GB, free: 73.46 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.001568/9.305, allocations: 1.052 MB / 4.214 GB, free: 73.35 MB / 0.573 GB Notification: Performance of sort global known variables: time 2e-07/9.305, allocations: 0 / 4.214 GB, free: 73.35 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009277/9.314, allocations: 2.062 MB / 4.216 GB, free: 73.35 MB / 0.573 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.01217/9.326, allocations: 2.354 MB / 4.218 GB, free: 73.15 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006424/9.333, allocations: 2.473 MB / 4.22 GB, free: 73.11 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.827e-05/9.333, allocations: 3.797 kB / 4.22 GB, free: 73.11 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00247/9.335, allocations: 1.044 MB / 4.221 GB, free: 73.1 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00459/9.34, allocations: 0.6391 MB / 4.222 GB, free: 73.09 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006784/9.347, allocations: 4.417 MB / 4.226 GB, free: 71.25 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008241/9.348, allocations: 1.48 MB / 4.228 GB, free: 70.54 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.002195/9.35, allocations: 0.9847 MB / 4.229 GB, free: 70.52 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002888/9.35, allocations: 108 kB / 4.229 GB, free: 70.51 MB / 0.573 GB Notification: Performance of SimCode: time 1.323e-06/9.35, allocations: 0 / 4.229 GB, free: 70.51 MB / 0.573 GB Notification: Performance of Templates: time 0.08663/9.437, allocations: 64.81 MB / 4.292 GB, free: 68.22 MB / 0.573 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