Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_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 trunk/package.mo): time 0.001113/0.001113, allocations: 197.9 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008192/0.0008194, allocations: 90.83 kB / 286.3 MB, free: 5.305 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2142/0.2142, allocations: 45.14 MB / 383.3 MB, free: 0.5117 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 6.051e-06/6.071e-06, allocations: 0 / 452.6 MB, free: 76.17 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1076, allocations: 63.24 MB / 0.5038 GB, free: 13.01 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.361/7.469, allocations: 2.838 GB / 3.342 GB, free: 81.84 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000284/7.469, allocations: 75.95 kB / 3.342 GB, free: 81.77 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.463/9.932, allocations: 0.4932 GB / 3.835 GB, free: 58.57 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.000164/9.932, allocations: 43.61 kB / 3.835 GB, free: 58.57 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01419/9.947, allocations: 2.997 MB / 3.838 GB, free: 57.69 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/9.947, allocations: 6.562 kB / 3.838 GB, free: 57.69 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006197/9.953, allocations: 0.7345 MB / 3.839 GB, free: 57.58 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005042/9.958, allocations: 1.59 MB / 3.841 GB, free: 57.3 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001514/9.958, allocations: 94.02 kB / 3.841 GB, free: 57.3 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004184/9.959, allocations: 104.4 kB / 3.841 GB, free: 57.3 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004602/9.963, allocations: 2.924 MB / 3.844 GB, free: 57.29 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004115/9.967, allocations: 2.94 MB / 3.847 GB, free: 56.85 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.859e-05/9.968, allocations: 11.52 kB / 3.847 GB, free: 56.85 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002379/9.968, allocations: 11.33 kB / 3.847 GB, free: 56.85 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001557/9.968, allocations: 173.8 kB / 3.847 GB, free: 56.84 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.304/10.27, allocations: 158.3 MB / 4.001 GB, free: 34.05 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001935/10.27, allocations: 1.148 MB / 4.002 GB, free: 34.04 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/10.28, allocations: 1.022 MB / 4.003 GB, free: 34.02 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04159/10.32, allocations: 19.11 MB / 4.022 GB, free: 21.13 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002892/10.32, allocations: 1.17 MB / 4.023 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=139): time 5.029e-06/10.32, allocations: 0 / 4.023 GB, free: 21.03 MB / 0.6198 GB Notification: Performance of matching and sorting (n=159): time 0.02109/10.34, allocations: 7.671 MB / 4.031 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000215/10.34, allocations: 229.4 kB / 4.031 GB, free: 19.68 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/10.34, allocations: 0.9521 MB / 4.032 GB, free: 19.5 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.000256/10.34, allocations: 25.7 kB / 4.032 GB, free: 19.47 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008392/10.34, allocations: 0.7718 MB / 4.033 GB, free: 18.99 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.00063/10.34, allocations: 0.5338 MB / 4.033 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/10.34, allocations: 0 / 4.033 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0003193/10.35, allocations: 450.4 kB / 4.034 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001806/10.35, allocations: 1.24 MB / 4.035 GB, free: 18.32 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00245/10.35, allocations: 1.782 MB / 4.037 GB, free: 17.69 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005697/10.36, allocations: 1.856 MB / 4.038 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.512e-05/10.36, allocations: 4.344 kB / 4.038 GB, free: 17.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.0134/10.37, allocations: 5.004 MB / 4.043 GB, free: 16.05 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.2889/10.66, allocations: 6.262 MB / 4.049 GB, free: 180.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.655e-05/10.66, allocations: 15.84 kB / 4.049 GB, free: 180.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0101/10.67, allocations: 2.73 MB / 4.052 GB, free: 180.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/10.67, allocations: 330.5 kB / 4.052 GB, free: 180.1 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008205/10.68, allocations: 4.856 MB / 4.057 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/10.68, allocations: 240.9 kB / 4.057 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000261/10.68, allocations: 109.8 kB / 4.058 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/10.68, allocations: 3.531 kB / 4.058 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007966/10.69, allocations: 3.885 MB / 4.061 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.64e-05/10.69, allocations: 22.62 kB / 4.061 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008259/10.7, allocations: 2.186 MB / 4.063 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001937/10.7, allocations: 373.2 kB / 4.064 GB, free: 179.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005143/10.7, allocations: 3.641 MB / 4.067 GB, free: 178.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002773/10.71, allocations: 232.9 kB / 4.068 GB, free: 178.9 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002671/10.71, allocations: 109.5 kB / 4.068 GB, free: 178.9 MB / 0.6198 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.0007655/10.71, allocations: 155.4 kB / 4.068 GB, free: 178.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/10.71, allocations: 0.5088 MB / 4.068 GB, free: 178.8 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007596/10.72, allocations: 5.198 MB / 4.073 GB, free: 178.5 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.926e-05/10.72, allocations: 52.81 kB / 4.073 GB, free: 178.5 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/10.72, allocations: 0 / 4.073 GB, free: 178.5 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005932/10.72, allocations: 4.66 MB / 4.078 GB, free: 177.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0115/10.74, allocations: 7.683 MB / 4.086 GB, free: 177.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/10.74, allocations: 3.656 kB / 4.086 GB, free: 177.3 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00163/10.74, allocations: 359.8 kB / 4.086 GB, free: 177.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001109/10.74, allocations: 420.5 kB / 4.086 GB, free: 177.2 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/10.74, allocations: 43.89 kB / 4.086 GB, free: 177.2 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001763/10.74, allocations: 3.402 MB / 4.09 GB, free: 174.6 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/10.74, allocations: 6.469 kB / 4.09 GB, free: 174.6 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009207/10.75, allocations: 6.387 MB / 4.096 GB, free: 174.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001452/10.75, allocations: 0.5433 MB / 4.096 GB, free: 174.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006369/10.75, allocations: 24.02 kB / 4.096 GB, free: 174.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001984/10.75, allocations: 171.1 kB / 4.097 GB, free: 174.1 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003183/10.75, allocations: 146.1 kB / 4.097 GB, free: 174.1 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000183/10.75, allocations: 62.14 kB / 4.097 GB, free: 174.1 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001079/10.75, allocations: 0.6829 MB / 4.097 GB, free: 174 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0111/10.77, allocations: 2.236 MB / 4.1 GB, free: 174 MB / 0.6198 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.01298/10.78, allocations: 2.176 MB / 4.102 GB, free: 173.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0122/10.79, allocations: 5.367 MB / 4.107 GB, free: 173.8 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/10.79, allocations: 3.375 kB / 4.107 GB, free: 173.8 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.004971/10.8, allocations: 2.399 MB / 4.109 GB, free: 173.8 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003859/10.8, allocations: 0.5246 MB / 4.11 GB, free: 173.8 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.013/10.81, allocations: 5.002 MB / 4.115 GB, free: 173 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003243/10.82, allocations: 1.966 MB / 4.117 GB, free: 172.3 MB / 0.6198 GB Notification: Performance of SimCode: time 1.072e-06/10.82, allocations: 0 / 4.117 GB, free: 172.3 MB / 0.6198 GB Notification: Performance of Templates: time 0.1298/10.95, allocations: 84.33 MB / 4.199 GB, free: 164.2 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches