Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.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_trunk_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_trunk_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 trunk/package.mo): time 0.001126/0.001126, allocations: 196.1 kB / 8.537 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000887/0.000887, allocations: 90.98 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.169/0.169, allocations: 45.13 MB / 383.3 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.124e-06, allocations: 4 kB / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 63.24 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.257/5.358, allocations: 2.83 GB / 3.334 GB, free: 76.82 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/5.358, allocations: 75.95 kB / 3.334 GB, free: 76.75 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.477/7.835, allocations: 0.579 GB / 3.913 GB, free: 52.98 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001814/7.836, allocations: 48.92 kB / 3.913 GB, free: 52.97 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.0131/7.849, allocations: 2.877 MB / 3.916 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.802e-05/7.849, allocations: 7.375 kB / 3.916 GB, free: 51.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004634/7.853, allocations: 0.5633 MB / 3.916 GB, free: 51.4 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004362/7.858, allocations: 1.437 MB / 3.918 GB, free: 51.04 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/7.858, allocations: 59.97 kB / 3.918 GB, free: 51.04 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/7.858, allocations: 86.83 kB / 3.918 GB, free: 51.04 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002851/7.861, allocations: 1.611 MB / 3.919 GB, free: 51.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/7.864, allocations: 1.81 MB / 3.921 GB, free: 50.65 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.407e-05/7.864, allocations: 11.45 kB / 3.921 GB, free: 50.65 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/7.864, allocations: 3.562 kB / 3.921 GB, free: 50.65 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/7.864, allocations: 111.5 kB / 3.921 GB, free: 50.64 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2052/8.069, allocations: 100.1 MB / 4.019 GB, free: 11.02 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/8.071, allocations: 0.6862 MB / 4.02 GB, free: 10.57 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007277/8.071, allocations: 0.5842 MB / 4.02 GB, free: 10.05 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03751/8.109, allocations: 19.3 MB / 4.039 GB, free: 6.461 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001405/8.11, allocations: 0.7426 MB / 4.04 GB, free: 5.82 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=88): time 3.046e-06/8.11, allocations: 0 / 4.04 GB, free: 5.82 MB / 0.5886 GB Notification: Performance of matching and sorting (n=96): time 0.01327/8.124, allocations: 4.854 MB / 4.045 GB, free: 1.586 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002403/8.124, allocations: 374.9 kB / 4.045 GB, free: 1.137 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001559/8.126, allocations: 0.8235 MB / 4.046 GB, free: 388 kB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001336/8.126, allocations: 29.7 kB / 4.046 GB, free: 352 kB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.4208/8.547, allocations: 0.5212 MB / 4.046 GB, free: 150.5 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000903/8.547, allocations: 323.4 kB / 4.047 GB, free: 150.5 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/8.548, allocations: 3.188 kB / 4.047 GB, free: 150.5 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001388/8.548, allocations: 356.1 kB / 4.047 GB, free: 150.2 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/8.549, allocations: 0.6832 MB / 4.048 GB, free: 150.2 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/8.55, allocations: 0.9644 MB / 4.048 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004151/8.554, allocations: 1.298 MB / 4.05 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.24e-05/8.554, allocations: 0 / 4.05 GB, free: 149.9 MB / 0.5886 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.007627/8.562, allocations: 2.789 MB / 4.052 GB, free: 149.7 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007651/8.562, allocations: 2.7 MB / 4.055 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/8.563, allocations: 8.344 kB / 4.055 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004166/8.563, allocations: 131.8 kB / 4.055 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/8.564, allocations: 320.5 kB / 4.056 GB, free: 146.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008534/8.565, allocations: 1.283 MB / 4.057 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001917/8.567, allocations: 180.2 kB / 4.057 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/8.567, allocations: 69.19 kB / 4.057 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/8.567, allocations: 3.875 kB / 4.057 GB, free: 145.9 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005415/8.573, allocations: 2.105 MB / 4.059 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.333e-05/8.573, allocations: 6.688 kB / 4.059 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000327/8.573, allocations: 127.6 kB / 4.059 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/8.574, allocations: 320.5 kB / 4.06 GB, free: 145.8 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007944/8.575, allocations: 1.283 MB / 4.061 GB, free: 144.8 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/8.577, allocations: 153.1 kB / 4.061 GB, free: 144.8 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001469/8.577, allocations: 64.34 kB / 4.061 GB, free: 144.8 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.0004953/8.578, allocations: 171.1 kB / 4.061 GB, free: 144.6 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/8.579, allocations: 434.9 kB / 4.062 GB, free: 144.6 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005602/8.585, allocations: 3.726 MB / 4.065 GB, free: 144.3 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-05/8.585, allocations: 28.47 kB / 4.065 GB, free: 144.3 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.302e-05/8.585, allocations: 9.531 kB / 4.065 GB, free: 144.3 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003874/8.589, allocations: 2.928 MB / 4.068 GB, free: 144 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009203/8.598, allocations: 5.518 MB / 4.074 GB, free: 143.3 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/8.598, allocations: 5.109 kB / 4.074 GB, free: 143.3 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008969/8.599, allocations: 176.2 kB / 4.074 GB, free: 143.3 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005249/8.599, allocations: 173.8 kB / 4.074 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/8.6, allocations: 33.97 kB / 4.074 GB, free: 143.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009226/8.6, allocations: 1.357 MB / 4.075 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/8.6, allocations: 7.156 kB / 4.075 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006596/8.607, allocations: 4.084 MB / 4.079 GB, free: 141.8 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001364/8.608, allocations: 0.5017 MB / 4.08 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002992/8.609, allocations: 13.47 kB / 4.08 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/8.61, allocations: 103.5 kB / 4.08 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/8.61, allocations: 76.14 kB / 4.08 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.966e-05/8.61, allocations: 39.36 kB / 4.08 GB, free: 141.6 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001274/8.611, allocations: 0.8709 MB / 4.081 GB, free: 141.5 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01149/8.623, allocations: 2.181 MB / 4.083 GB, free: 141.5 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.01394/8.637, allocations: 2.585 MB / 4.085 GB, free: 141.3 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005613/8.643, allocations: 3.22 MB / 4.089 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/8.643, allocations: 0 / 4.089 GB, free: 141.2 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002041/8.645, allocations: 1.568 MB / 4.09 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/8.648, allocations: 495.2 kB / 4.091 GB, free: 141.1 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006748/8.655, allocations: 3.489 MB / 4.094 GB, free: 140.5 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001527/8.656, allocations: 1.725 MB / 4.096 GB, free: 139.7 MB / 0.5886 GB Notification: Performance of SimCode: time 1.653e-06/8.656, allocations: 0 / 4.096 GB, free: 139.7 MB / 0.5886 GB Notification: Performance of Templates: time 0.1072/8.763, allocations: 66.71 MB / 4.161 GB, free: 137.5 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches