Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2") [: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.0009452/0.0009454, allocations: 187.7 kB / 7.804 MB, free: 2.48 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.057/1.057, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009127/0.0009127, allocations: 88.22 kB / 261.4 MB, free: 13.55 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.1662/0.1662, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.06e-06/5.08e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2375/0.2375, allocations: 58.85 MB / 476.6 MB, free: 5.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.817/4.055, allocations: 2.824 GB / 3.29 GB, free: 59 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/4.055, allocations: 82.11 kB / 3.29 GB, free: 58.92 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.707/5.762, allocations: 0.5732 GB / 3.863 GB, free: 45.48 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001734/5.762, allocations: 44.88 kB / 3.863 GB, free: 45.47 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01055/5.773, allocations: 2.859 MB / 3.866 GB, free: 43.89 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/5.773, allocations: 14.22 kB / 3.866 GB, free: 43.88 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00416/5.777, allocations: 0.5658 MB / 3.866 GB, free: 43.75 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003621/5.781, allocations: 1.443 MB / 3.868 GB, free: 43.07 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/5.781, allocations: 65.16 kB / 3.868 GB, free: 43.06 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003439/5.781, allocations: 75.44 kB / 3.868 GB, free: 43.05 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002463/5.784, allocations: 1.61 MB / 3.869 GB, free: 42.52 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002526/5.786, allocations: 1.818 MB / 3.871 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.531e-05/5.786, allocations: 7.281 kB / 3.871 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001626/5.786, allocations: 3.562 kB / 3.871 GB, free: 41.66 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.397e-05/5.786, allocations: 108.6 kB / 3.871 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1565/5.943, allocations: 89.11 MB / 3.958 GB, free: 1.793 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/5.944, allocations: 0.6806 MB / 3.959 GB, free: 1.18 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009427/5.945, allocations: 0.585 MB / 3.959 GB, free: 0.6562 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2298/6.175, allocations: 16.91 MB / 3.976 GB, free: 116.8 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/6.176, allocations: 0.7431 MB / 3.977 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=88): time 3.817e-06/6.176, allocations: 0 / 3.977 GB, free: 116.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96): time 0.0131/6.189, allocations: 4.853 MB / 3.981 GB, free: 115.7 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.127e-05/6.19, allocations: 380.4 kB / 3.982 GB, free: 115.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/6.191, allocations: 0.8201 MB / 3.983 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000114/6.191, allocations: 25.7 kB / 3.983 GB, free: 115.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004266/6.191, allocations: 0.5293 MB / 3.983 GB, free: 114.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/6.192, allocations: 314.1 kB / 3.983 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.493e-05/6.192, allocations: 3.656 kB / 3.983 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.605e-05/6.192, allocations: 359.6 kB / 3.984 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008819/6.193, allocations: 0.6775 MB / 3.984 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009952/6.194, allocations: 0.9632 MB / 3.985 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007313/6.201, allocations: 1.921 MB / 3.987 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/6.201, allocations: 3.172 kB / 3.987 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.01016/6.211, allocations: 3.405 MB / 3.991 GB, free: 113.9 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005169/6.212, allocations: 2.702 MB / 3.993 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.792e-05/6.212, allocations: 7.219 kB / 3.993 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003469/6.212, allocations: 129.2 kB / 3.993 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/6.214, allocations: 322.8 kB / 3.994 GB, free: 111.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000697/6.214, allocations: 1.285 MB / 3.995 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/6.216, allocations: 175.4 kB / 3.995 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/6.216, allocations: 66.95 kB / 3.995 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.276e-06/6.216, allocations: 3.75 kB / 3.995 GB, free: 110.1 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00822/6.224, allocations: 2.725 MB / 3.998 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.814e-05/6.224, allocations: 12.3 kB / 3.998 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002955/6.225, allocations: 132 kB / 3.998 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/6.226, allocations: 321.3 kB / 3.998 GB, free: 110 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006498/6.226, allocations: 1.279 MB / 4 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/6.228, allocations: 150.1 kB / 4 GB, free: 109 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001378/6.228, allocations: 61.73 kB / 4 GB, free: 109 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003678/6.228, allocations: 186 kB / 4 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001198/6.23, allocations: 429.4 kB / 4 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005042/6.235, allocations: 3.718 MB / 4.004 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.653e-05/6.235, allocations: 34.62 kB / 4.004 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/6.235, allocations: 0 / 4.004 GB, free: 108.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003243/6.238, allocations: 2.929 MB / 4.007 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007877/6.246, allocations: 5.519 MB / 4.012 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.144e-06/6.246, allocations: 3.875 kB / 4.012 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008466/6.247, allocations: 183.5 kB / 4.012 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004815/6.247, allocations: 173.7 kB / 4.013 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.549e-05/6.247, allocations: 21.34 kB / 4.013 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007465/6.248, allocations: 1.364 MB / 4.014 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.296e-06/6.248, allocations: 3.094 kB / 4.014 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005694/6.254, allocations: 4.098 MB / 4.018 GB, free: 106 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/6.255, allocations: 0.4942 MB / 4.018 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/6.255, allocations: 16.53 kB / 4.018 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/6.256, allocations: 103.1 kB / 4.019 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/6.257, allocations: 68.81 kB / 4.019 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.841e-05/6.257, allocations: 42.28 kB / 4.019 GB, free: 105.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001192/6.258, allocations: 0.8731 MB / 4.019 GB, free: 105.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007683/6.266, allocations: 2.16 MB / 4.022 GB, free: 105.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0109/6.277, allocations: 2.573 MB / 4.024 GB, free: 105.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.006094/6.283, allocations: 3.212 MB / 4.027 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.797e-06/6.283, allocations: 0 / 4.027 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001983/6.285, allocations: 1.569 MB / 4.029 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/6.288, allocations: 488.3 kB / 4.029 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006487/6.294, allocations: 3.483 MB / 4.033 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001669/6.296, allocations: 1.728 MB / 4.034 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of SimCode: time 7.52e-07/6.296, allocations: 2.25 kB / 4.034 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of Templates: time 0.08892/6.385, allocations: 66.63 MB / 4.099 GB, free: 100.5 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches