Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.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.BranchingPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2") [: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.001171/0.001171, allocations: 196.5 kB / 8.534 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.306/1.306, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000933/0.000933, allocations: 94.8 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2166/0.2166, allocations: 45.13 MB / 383.3 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.746e-06/8.776e-06, allocations: 4 kB / 452.6 MB, free: 76.23 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1238, allocations: 63.25 MB / 0.5038 GB, free: 13.06 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.863/7.987, allocations: 2.847 GB / 3.351 GB, free: 69.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/7.987, allocations: 79.95 kB / 3.351 GB, free: 68.94 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.136/11.12, allocations: 0.8082 GB / 4.159 GB, free: 43.84 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0002526/11.12, allocations: 52.56 kB / 4.159 GB, free: 43.83 MB / 0.5573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 0.01669/11.14, allocations: 3.803 MB / 4.163 GB, free: 42.02 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/11.14, allocations: 8.438 kB / 4.163 GB, free: 42.02 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007227/11.15, allocations: 0.8143 MB / 4.164 GB, free: 41.89 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006678/11.15, allocations: 2.005 MB / 4.166 GB, free: 41.45 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/11.15, allocations: 79.89 kB / 4.166 GB, free: 41.45 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005451/11.16, allocations: 116.3 kB / 4.166 GB, free: 41.45 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005371/11.16, allocations: 2.6 MB / 4.169 GB, free: 41.44 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004287/11.16, allocations: 2.588 MB / 4.171 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.516e-05/11.16, allocations: 8.875 kB / 4.171 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002076/11.17, allocations: 7.031 kB / 4.171 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001555/11.17, allocations: 152.4 kB / 4.171 GB, free: 40.96 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5289/11.69, allocations: 141.1 MB / 4.309 GB, free: 92.57 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00148/11.7, allocations: 1.048 MB / 4.31 GB, free: 92.55 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/11.7, allocations: 1.007 MB / 4.311 GB, free: 92.53 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03323/11.73, allocations: 19.48 MB / 4.33 GB, free: 79.97 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002066/11.73, allocations: 1.184 MB / 4.331 GB, free: 79.81 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 3.567e-06/11.73, allocations: 0 / 4.331 GB, free: 79.81 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.03483/11.77, allocations: 9.233 MB / 4.34 GB, free: 78.43 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.312e-05/11.77, allocations: 353.2 kB / 4.341 GB, free: 78.03 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/11.77, allocations: 1.051 MB / 4.342 GB, free: 77.86 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002982/11.77, allocations: 33.08 kB / 4.342 GB, free: 77.83 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005061/11.77, allocations: 0.683 MB / 4.342 GB, free: 77.53 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004692/11.77, allocations: 0.5055 MB / 4.343 GB, free: 77.27 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001245/11.77, allocations: 4.234 kB / 4.343 GB, free: 77.27 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.741e-05/11.77, allocations: 372.2 kB / 4.343 GB, free: 76.96 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/11.77, allocations: 1.027 MB / 4.344 GB, free: 76.96 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/11.77, allocations: 1.414 MB / 4.345 GB, free: 76.58 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008627/11.78, allocations: 2.004 MB / 4.347 GB, free: 76.57 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.219e-05/11.78, allocations: 3.062 kB / 4.347 GB, free: 76.57 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01432/11.8, allocations: 4.333 MB / 4.352 GB, free: 76.37 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.000771/11.8, allocations: 3.719 MB / 4.355 GB, free: 72.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.887e-05/11.8, allocations: 13.94 kB / 4.355 GB, free: 72.56 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002179/11.8, allocations: 0.5179 MB / 4.356 GB, free: 72.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001943/11.8, allocations: 458.9 kB / 4.356 GB, free: 72.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002333/11.8, allocations: 2.911 MB / 4.359 GB, free: 70.45 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003745/11.81, allocations: 270.1 kB / 4.359 GB, free: 70.43 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003752/11.81, allocations: 95.27 kB / 4.359 GB, free: 70.43 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/11.81, allocations: 3.938 kB / 4.359 GB, free: 70.43 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01094/11.82, allocations: 3.21 MB / 4.363 GB, free: 70.34 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.559e-05/11.82, allocations: 7.5 kB / 4.363 GB, free: 70.34 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004242/11.82, allocations: 188.9 kB / 4.363 GB, free: 70.32 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00186/11.82, allocations: 471.5 kB / 4.363 GB, free: 70.31 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009539/11.82, allocations: 1.922 MB / 4.365 GB, free: 68.75 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/11.82, allocations: 243.7 kB / 4.365 GB, free: 68.72 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/11.82, allocations: 94.27 kB / 4.365 GB, free: 68.71 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006/11.83, allocations: 226.4 kB / 4.366 GB, free: 68.55 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001823/11.83, allocations: 0.602 MB / 4.366 GB, free: 68.46 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01443/11.84, allocations: 6.766 MB / 4.373 GB, free: 67.95 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-05/11.84, allocations: 51.81 kB / 4.373 GB, free: 67.95 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.817e-06/11.84, allocations: 8.094 kB / 4.373 GB, free: 67.95 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01131/11.85, allocations: 5.852 MB / 4.379 GB, free: 67.23 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01842/11.87, allocations: 10.23 MB / 4.389 GB, free: 65.95 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/11.87, allocations: 5.562 kB / 4.389 GB, free: 65.95 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001205/11.87, allocations: 297.5 kB / 4.389 GB, free: 65.95 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/11.87, allocations: 1.159 MB / 4.39 GB, free: 65.86 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001688/11.87, allocations: 50.81 kB / 4.39 GB, free: 65.86 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/11.88, allocations: 3.41 MB / 4.393 GB, free: 63.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.478e-06/11.88, allocations: 5.469 kB / 4.393 GB, free: 63.75 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01458/11.89, allocations: 7.676 MB / 4.401 GB, free: 62.62 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00152/11.89, allocations: 0.6709 MB / 4.402 GB, free: 62.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004428/11.89, allocations: 27.25 kB / 4.402 GB, free: 62.39 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/11.9, allocations: 143.7 kB / 4.402 GB, free: 62.38 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000246/11.9, allocations: 140 kB / 4.402 GB, free: 62.37 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/11.9, allocations: 70.23 kB / 4.402 GB, free: 62.37 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001337/11.9, allocations: 1.036 MB / 4.403 GB, free: 62.26 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01045/11.91, allocations: 2.524 MB / 4.405 GB, free: 62.23 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01173/11.92, allocations: 2.934 MB / 4.408 GB, free: 61.82 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006992/11.93, allocations: 4.932 MB / 4.413 GB, free: 61.63 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/11.93, allocations: 3.656 kB / 4.413 GB, free: 61.63 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003583/11.93, allocations: 2.99 MB / 4.416 GB, free: 61.55 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004072/11.93, allocations: 0.6774 MB / 4.417 GB, free: 61.51 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/11.94, allocations: 5.401 MB / 4.422 GB, free: 60.26 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00199/11.95, allocations: 2.214 MB / 4.424 GB, free: 59.47 MB / 0.5886 GB Notification: Performance of SimCode: time 2.936e-06/11.95, allocations: 0 / 4.424 GB, free: 59.47 MB / 0.5886 GB Notification: Performance of Templates: time 0.114/12.06, allocations: 84.52 MB / 4.507 GB, free: 24.93 MB / 0.5886 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes2/BranchingPipes2.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches