Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.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.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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.00103/0.00103, allocations: 184.2 kB / 7.804 MB, free: 2.496 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.064/1.064, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008677/0.0008677, allocations: 91.47 kB / 261.4 MB, free: 13.56 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.1514/0.1514, allocations: 43.5 MB / 352.9 MB, free: 1.953 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.25e-06/5.279e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2117, allocations: 58.84 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.85/5.061, allocations: 2.832 GB / 3.298 GB, free: 34.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002533/5.062, allocations: 79.95 kB / 3.298 GB, free: 33.99 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.727/6.789, allocations: 499.5 MB / 3.786 GB, free: 59.12 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001755/6.789, allocations: 44.5 kB / 3.786 GB, free: 59.11 MB / 0.5105 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.01142/6.8, allocations: 2.986 MB / 3.789 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/6.8, allocations: 10.72 kB / 3.789 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004739/6.805, allocations: 0.7346 MB / 3.789 GB, free: 57.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/6.808, allocations: 1.593 MB / 3.791 GB, free: 57.48 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001112/6.809, allocations: 97.05 kB / 3.791 GB, free: 57.48 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002522/6.809, allocations: 104.8 kB / 3.791 GB, free: 57.48 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00368/6.813, allocations: 2.922 MB / 3.794 GB, free: 57.47 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003899/6.816, allocations: 2.945 MB / 3.797 GB, free: 57.03 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.629e-05/6.816, allocations: 5.688 kB / 3.797 GB, free: 57.03 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/6.817, allocations: 6.75 kB / 3.797 GB, free: 57.03 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/6.817, allocations: 182.6 kB / 3.797 GB, free: 57.03 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2568/7.074, allocations: 141.1 MB / 3.935 GB, free: 1.996 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/7.077, allocations: 1.157 MB / 3.936 GB, free: 1.352 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001983/7.079, allocations: 1.021 MB / 3.937 GB, free: 0.793 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2328/7.311, allocations: 16.72 MB / 3.953 GB, free: 145.9 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002062/7.314, allocations: 1.18 MB / 3.954 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=139): time 3.216e-06/7.314, allocations: 3.688 kB / 3.954 GB, free: 145.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=159): time 0.0173/7.331, allocations: 7.664 MB / 3.962 GB, free: 144.9 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/7.331, allocations: 226.1 kB / 3.962 GB, free: 144.7 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/7.332, allocations: 0.9529 MB / 3.963 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001318/7.332, allocations: 29.02 kB / 3.963 GB, free: 144.5 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005257/7.333, allocations: 0.7724 MB / 3.964 GB, free: 144.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003609/7.333, allocations: 0.533 MB / 3.964 GB, free: 143.9 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001248/7.333, allocations: 0 / 3.964 GB, free: 143.9 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001327/7.333, allocations: 445.7 kB / 3.965 GB, free: 143.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/7.335, allocations: 1.242 MB / 3.966 GB, free: 143.5 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00163/7.336, allocations: 1.78 MB / 3.968 GB, free: 142.9 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005761/7.342, allocations: 2.166 MB / 3.97 GB, free: 142.9 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/7.342, allocations: 7.109 kB / 3.97 GB, free: 142.9 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.01091/7.353, allocations: 5.306 MB / 3.975 GB, free: 142.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001048/7.354, allocations: 6.267 MB / 3.981 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/7.354, allocations: 18.75 kB / 3.981 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009938/7.364, allocations: 2.845 MB / 3.984 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001362/7.366, allocations: 337.8 kB / 3.984 GB, free: 136.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007666/7.373, allocations: 4.842 MB / 3.989 GB, free: 135.6 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002828/7.376, allocations: 250 kB / 3.989 GB, free: 135.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002277/7.376, allocations: 113.8 kB / 3.989 GB, free: 135.6 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/7.376, allocations: 6.375 kB / 3.989 GB, free: 135.6 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008724/7.385, allocations: 4.189 MB / 3.994 GB, free: 135.5 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.986e-05/7.385, allocations: 14 kB / 3.994 GB, free: 135.5 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007522/7.393, allocations: 2.192 MB / 3.996 GB, free: 135.5 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/7.394, allocations: 374.2 kB / 3.996 GB, free: 135.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004499/7.399, allocations: 3.639 MB / 4 GB, free: 134.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002161/7.401, allocations: 223.9 kB / 4 GB, free: 134.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001926/7.401, allocations: 110.8 kB / 4 GB, free: 134.9 MB / 0.5573 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.0005661/7.402, allocations: 158.6 kB / 4 GB, free: 134.8 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001337/7.403, allocations: 0.5096 MB / 4.001 GB, free: 134.8 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006611/7.41, allocations: 5.195 MB / 4.006 GB, free: 134.4 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.091e-05/7.41, allocations: 44.66 kB / 4.006 GB, free: 134.4 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/7.41, allocations: 5.5 kB / 4.006 GB, free: 134.4 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004932/7.415, allocations: 4.669 MB / 4.01 GB, free: 133.8 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008933/7.424, allocations: 7.676 MB / 4.018 GB, free: 133.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.233e-06/7.424, allocations: 3.5 kB / 4.018 GB, free: 133.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001509/7.425, allocations: 368.9 kB / 4.018 GB, free: 133.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001014/7.426, allocations: 418.5 kB / 4.018 GB, free: 133.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001359/7.426, allocations: 48.17 kB / 4.019 GB, free: 133.1 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001462/7.428, allocations: 3.393 MB / 4.022 GB, free: 130.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/7.428, allocations: 0 / 4.022 GB, free: 130.5 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007777/7.436, allocations: 6.399 MB / 4.028 GB, free: 130 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00107/7.437, allocations: 0.537 MB / 4.029 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003107/7.437, allocations: 19.47 kB / 4.029 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/7.439, allocations: 170.2 kB / 4.029 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002805/7.439, allocations: 153.2 kB / 4.029 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001329/7.439, allocations: 61.81 kB / 4.029 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0008031/7.44, allocations: 0.6805 MB / 4.03 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007115/7.447, allocations: 2.221 MB / 4.032 GB, free: 129.7 MB / 0.5573 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.008006/7.455, allocations: 2.152 MB / 4.034 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.007596/7.463, allocations: 5.362 MB / 4.039 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/7.463, allocations: 5.469 kB / 4.039 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.003047/7.466, allocations: 2.394 MB / 4.041 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00273/7.468, allocations: 0.5274 MB / 4.042 GB, free: 129.3 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007843/7.476, allocations: 5 MB / 4.047 GB, free: 128.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001619/7.478, allocations: 1.965 MB / 4.049 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of SimCode: time 7.81e-07/7.478, allocations: 0 / 4.049 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of Templates: time 0.1016/7.58, allocations: 84.19 MB / 4.131 GB, free: 88.63 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeInitialization/DynamicPipeInitialization.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches