Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.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_4.0.0_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_4.0.0_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 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 174.4 kB / 8.518 MB, free: 1.832 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.24/1.24, allocations: 221.4 MB / 230.3 MB, free: 7.695 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.0009739/0.0009739, allocations: 88.75 kB / 281.2 MB, free: 5.434 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.1704/0.1704, allocations: 44.15 MB / 376.1 MB, free: 3.199 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.991e-06/6.031e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1117, allocations: 61.9 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.844/5.956, allocations: 2.829 GB / 3.323 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003194/5.956, allocations: 78.83 kB / 3.323 GB, free: 146.1 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.305/8.261, allocations: 0.5795 GB / 3.903 GB, free: 48.73 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001363/8.261, allocations: 43.3 kB / 3.903 GB, free: 48.73 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 0.01062/8.272, allocations: 2.872 MB / 3.906 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/8.272, allocations: 14.5 kB / 3.906 GB, free: 47.57 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004182/8.276, allocations: 0.5602 MB / 3.906 GB, free: 47.48 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003931/8.28, allocations: 1.446 MB / 3.908 GB, free: 47.11 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-05/8.28, allocations: 59.84 kB / 3.908 GB, free: 47.11 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001983/8.28, allocations: 78.5 kB / 3.908 GB, free: 47.11 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002633/8.283, allocations: 1.617 MB / 3.909 GB, free: 47.1 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002426/8.285, allocations: 1.813 MB / 3.911 GB, free: 46.72 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.687e-05/8.285, allocations: 9.344 kB / 3.911 GB, free: 46.72 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001347/8.285, allocations: 1.875 kB / 3.911 GB, free: 46.72 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/8.286, allocations: 111.8 kB / 3.911 GB, free: 46.71 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1732/8.459, allocations: 89.12 MB / 3.998 GB, free: 23.29 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001475/8.46, allocations: 0.6866 MB / 3.999 GB, free: 23.27 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009861/8.461, allocations: 0.5823 MB / 3.999 GB, free: 23.26 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03524/8.497, allocations: 16.92 MB / 4.016 GB, free: 28.15 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001527/8.498, allocations: 0.7437 MB / 4.017 GB, free: 28.03 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=88): time 4.048e-06/8.498, allocations: 0 / 4.017 GB, free: 28.03 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96): time 0.01293/8.511, allocations: 4.856 MB / 4.021 GB, free: 26.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002501/8.511, allocations: 376.4 kB / 4.022 GB, free: 26.4 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/8.513, allocations: 0.8167 MB / 4.023 GB, free: 26.24 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.000119/8.513, allocations: 25.7 kB / 4.023 GB, free: 26.21 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004879/8.513, allocations: 0.5253 MB / 4.023 GB, free: 25.89 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/8.514, allocations: 323 kB / 4.023 GB, free: 25.69 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.547e-05/8.514, allocations: 3.75 kB / 4.023 GB, free: 25.69 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001816/8.514, allocations: 354.5 kB / 4.024 GB, free: 25.38 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009242/8.515, allocations: 0.6835 MB / 4.024 GB, free: 25.38 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/8.516, allocations: 0.9608 MB / 4.025 GB, free: 25.06 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003284/8.519, allocations: 1.2 MB / 4.027 GB, free: 25.03 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/8.519, allocations: 4 kB / 4.027 GB, free: 25.03 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006471/8.526, allocations: 2.68 MB / 4.029 GB, free: 24.89 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001314/8.527, allocations: 2.702 MB / 4.032 GB, free: 22.06 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.067e-05/8.527, allocations: 11.19 kB / 4.032 GB, free: 22.06 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/8.527, allocations: 130.2 kB / 4.032 GB, free: 22.04 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/8.529, allocations: 323.9 kB / 4.032 GB, free: 22.04 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/8.53, allocations: 1.273 MB / 4.033 GB, free: 21 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/8.532, allocations: 188 kB / 4.034 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001691/8.532, allocations: 67.78 kB / 4.034 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.288e-06/8.532, allocations: 3.656 kB / 4.034 GB, free: 20.96 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004424/8.536, allocations: 2.002 MB / 4.036 GB, free: 20.91 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.465e-05/8.536, allocations: 11.42 kB / 4.036 GB, free: 20.91 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003103/8.537, allocations: 128 kB / 4.036 GB, free: 20.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001253/8.538, allocations: 318.2 kB / 4.036 GB, free: 20.89 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001073/8.539, allocations: 1.281 MB / 4.037 GB, free: 19.86 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001732/8.541, allocations: 159.6 kB / 4.037 GB, free: 19.83 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000178/8.541, allocations: 68.34 kB / 4.038 GB, free: 19.83 MB / 0.5886 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.00057/8.542, allocations: 166.4 kB / 4.038 GB, free: 19.69 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001563/8.543, allocations: 434 kB / 4.038 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006146/8.549, allocations: 3.72 MB / 4.042 GB, free: 19.28 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.236e-05/8.549, allocations: 33.64 kB / 4.042 GB, free: 19.28 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/8.549, allocations: 4.625 kB / 4.042 GB, free: 19.28 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004147/8.554, allocations: 2.924 MB / 4.045 GB, free: 18.97 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00931/8.563, allocations: 5.525 MB / 4.05 GB, free: 18.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/8.563, allocations: 0 / 4.05 GB, free: 18.24 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008837/8.564, allocations: 181.7 kB / 4.05 GB, free: 18.24 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005214/8.564, allocations: 172.8 kB / 4.05 GB, free: 18.22 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/8.565, allocations: 26.75 kB / 4.05 GB, free: 18.22 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001174/8.566, allocations: 1.363 MB / 4.052 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.233e-06/8.566, allocations: 6.344 kB / 4.052 GB, free: 17.17 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006754/8.573, allocations: 4.096 MB / 4.056 GB, free: 16.75 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/8.574, allocations: 0.4978 MB / 4.056 GB, free: 16.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006372/8.575, allocations: 12.31 kB / 4.056 GB, free: 16.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001461/8.576, allocations: 102.5 kB / 4.056 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002018/8.576, allocations: 68.89 kB / 4.056 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/8.577, allocations: 41.7 kB / 4.056 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001922/8.578, allocations: 0.8731 MB / 4.057 GB, free: 16.43 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01419/8.593, allocations: 2.171 MB / 4.059 GB, free: 16.08 MB / 0.5886 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.01792/8.611, allocations: 2.581 MB / 4.062 GB, free: 15.47 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.008075/8.619, allocations: 3.21 MB / 4.065 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/8.619, allocations: 1.094 kB / 4.065 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003192/8.622, allocations: 1.565 MB / 4.067 GB, free: 15.27 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00467/8.627, allocations: 495.3 kB / 4.067 GB, free: 15.25 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01129/8.638, allocations: 3.487 MB / 4.07 GB, free: 14.45 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004298/8.642, allocations: 1.731 MB / 4.072 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of SimCode: time 2.625e-06/8.642, allocations: 0 / 4.072 GB, free: 13.69 MB / 0.5886 GB Notification: Performance of Templates: time 0.4346/9.077, allocations: 66.72 MB / 4.137 GB, free: 134.5 MB / 0.5886 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/SeriesPipes2/SeriesPipes2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches