Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 178.2 kB / 8.522 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 221.4 MB / 230.3 MB, free: 7.715 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.0008736/0.0008735, allocations: 92.66 kB / 281.2 MB, free: 5.445 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.1835/0.1835, allocations: 44.15 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.092e-05/1.095e-05, allocations: 4 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1432, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.132/7.275, allocations: 2.837 GB / 3.331 GB, free: 139.2 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003089/7.276, allocations: 80.95 kB / 3.331 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.709/8.985, allocations: 0.4933 GB / 3.825 GB, free: 40.07 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001249/8.985, allocations: 44.03 kB / 3.825 GB, free: 40.06 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01249/8.998, allocations: 2.997 MB / 3.828 GB, free: 38.49 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/8.998, allocations: 15.34 kB / 3.828 GB, free: 38.48 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006517/9.004, allocations: 0.7384 MB / 3.828 GB, free: 38.3 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00577/9.01, allocations: 1.589 MB / 3.83 GB, free: 37.55 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002914/9.01, allocations: 94.25 kB / 3.83 GB, free: 37.54 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009844/9.011, allocations: 109.5 kB / 3.83 GB, free: 37.53 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006159/9.017, allocations: 2.921 MB / 3.833 GB, free: 35.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005223/9.023, allocations: 2.945 MB / 3.836 GB, free: 32.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.26e-05/9.023, allocations: 7.938 kB / 3.836 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002544/9.023, allocations: 10.44 kB / 3.836 GB, free: 32.84 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001627/9.023, allocations: 177.4 kB / 3.836 GB, free: 32.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4767/9.5, allocations: 141.1 MB / 3.974 GB, free: 51.21 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001891/9.502, allocations: 1.156 MB / 3.975 GB, free: 51.19 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/9.503, allocations: 1.018 MB / 3.976 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03028/9.533, allocations: 16.74 MB / 3.992 GB, free: 40.27 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002143/9.536, allocations: 1.171 MB / 3.994 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=139): time 3.547e-06/9.536, allocations: 0 / 3.994 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=159): time 0.02058/9.556, allocations: 7.674 MB / 4.001 GB, free: 39.25 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/9.556, allocations: 224.8 kB / 4.001 GB, free: 39 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/9.558, allocations: 0.9565 MB / 4.002 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001516/9.558, allocations: 25.7 kB / 4.002 GB, free: 38.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006799/9.559, allocations: 0.7732 MB / 4.003 GB, free: 38.43 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005199/9.559, allocations: 0.5367 MB / 4.004 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/9.559, allocations: 0 / 4.004 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0002109/9.56, allocations: 442.1 kB / 4.004 GB, free: 37.84 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/9.561, allocations: 1.241 MB / 4.005 GB, free: 37.83 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/9.563, allocations: 1.782 MB / 4.007 GB, free: 37.21 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004093/9.567, allocations: 1.807 MB / 4.009 GB, free: 37.16 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/9.567, allocations: 3.344 kB / 4.009 GB, free: 37.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01007/9.577, allocations: 4.953 MB / 4.014 GB, free: 36.99 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.001763/9.579, allocations: 6.263 MB / 4.02 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/9.579, allocations: 17.53 kB / 4.02 GB, free: 30.41 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009459/9.589, allocations: 2.72 MB / 4.022 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/9.59, allocations: 337.4 kB / 4.023 GB, free: 30.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008472/9.599, allocations: 4.845 MB / 4.027 GB, free: 29.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003102/9.602, allocations: 252.6 kB / 4.028 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000478/9.602, allocations: 112.1 kB / 4.028 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/9.602, allocations: 4.625 kB / 4.028 GB, free: 29.69 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00831/9.611, allocations: 3.834 MB / 4.031 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.464e-05/9.611, allocations: 18.72 kB / 4.031 GB, free: 29.62 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007944/9.619, allocations: 2.19 MB / 4.034 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/9.62, allocations: 370 kB / 4.034 GB, free: 29.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005142/9.625, allocations: 3.643 MB / 4.038 GB, free: 28.96 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002613/9.628, allocations: 224 kB / 4.038 GB, free: 28.93 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004919/9.629, allocations: 109.8 kB / 4.038 GB, free: 28.93 MB / 0.5417 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: 72 * Number of states: 0 () * Number of discrete variables: 17 ($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,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete 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.0009042/9.63, allocations: 152.5 kB / 4.038 GB, free: 28.83 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001845/9.631, allocations: 0.5112 MB / 4.038 GB, free: 28.76 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008175/9.64, allocations: 5.207 MB / 4.044 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.554e-05/9.64, allocations: 35.62 kB / 4.044 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.571e-05/9.64, allocations: 11.17 kB / 4.044 GB, free: 28.41 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005908/9.646, allocations: 4.666 MB / 4.048 GB, free: 27.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01228/9.658, allocations: 7.683 MB / 4.056 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/9.658, allocations: 0 / 4.056 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/9.66, allocations: 369.1 kB / 4.056 GB, free: 27.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001234/9.661, allocations: 414.5 kB / 4.056 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002428/9.661, allocations: 54.23 kB / 4.056 GB, free: 27.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2387/9.9, allocations: 3.393 MB / 4.06 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-05/9.9, allocations: 3.656 kB / 4.06 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0103/9.91, allocations: 6.393 MB / 4.066 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/9.912, allocations: 0.5457 MB / 4.067 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003495/9.912, allocations: 15.39 kB / 4.067 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/9.914, allocations: 162.6 kB / 4.067 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/9.914, allocations: 151.8 kB / 4.067 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000146/9.914, allocations: 66.64 kB / 4.067 GB, free: 109 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0009516/9.915, allocations: 0.6823 MB / 4.068 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008645/9.924, allocations: 2.218 MB / 4.07 GB, free: 108.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.009295/9.933, allocations: 2.154 MB / 4.072 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008204/9.942, allocations: 5.364 MB / 4.077 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/9.942, allocations: 3.156 kB / 4.077 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003177/9.945, allocations: 2.402 MB / 4.079 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/9.948, allocations: 0.5231 MB / 4.08 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008464/9.956, allocations: 5.016 MB / 4.085 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001777/9.958, allocations: 1.966 MB / 4.087 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of SimCode: time 2.224e-06/9.958, allocations: 0 / 4.087 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of Templates: time 0.1112/10.07, allocations: 84.25 MB / 4.169 GB, free: 104.2 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches