Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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.BranchingPipes13") [: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.001514/0.001514, allocations: 203.1 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.5 MB / 234.4 MB, free: 3.402 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001166/0.001166, allocations: 90.56 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.2608/0.2608, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.596e-06/8.627e-06, allocations: 4 kB / 452.6 MB, free: 76.2 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1777/0.1777, allocations: 63.24 MB / 0.5038 GB, free: 13.03 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.556/7.734, allocations: 2.831 GB / 3.335 GB, free: 87.45 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/7.735, allocations: 79.95 kB / 3.335 GB, free: 87.37 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.759/10.49, allocations: 0.8726 GB / 4.207 GB, free: 32.18 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 0.0001932/10.49, allocations: 63.75 kB / 4.207 GB, free: 32.16 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01437/10.51, allocations: 3.856 MB / 4.211 GB, free: 30 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/10.51, allocations: 8.719 kB / 4.211 GB, free: 30 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006927/10.52, allocations: 0.8203 MB / 4.212 GB, free: 29.73 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005761/10.52, allocations: 1.955 MB / 4.214 GB, free: 28.14 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/10.52, allocations: 95.25 kB / 4.214 GB, free: 28.05 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005637/10.52, allocations: 104 kB / 4.214 GB, free: 27.95 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003919/10.53, allocations: 2.416 MB / 4.217 GB, free: 25.79 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003925/10.53, allocations: 2.642 MB / 4.219 GB, free: 23.43 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.016e-05/10.53, allocations: 7.938 kB / 4.219 GB, free: 23.43 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/10.53, allocations: 7.906 kB / 4.219 GB, free: 23.42 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000157/10.53, allocations: 161.3 kB / 4.219 GB, free: 23.29 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4917/11.02, allocations: 141.5 MB / 4.357 GB, free: 39.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/11.02, allocations: 1.039 MB / 4.358 GB, free: 39.75 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00107/11.02, allocations: 0.9314 MB / 4.359 GB, free: 39.74 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03516/11.06, allocations: 19.39 MB / 4.378 GB, free: 42.59 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001812/11.06, allocations: 1.145 MB / 4.379 GB, free: 42.43 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=136): time 3.828e-06/11.06, allocations: 0 / 4.379 GB, free: 42.43 MB / 0.6042 GB Notification: Performance of matching and sorting (n=148): time 0.01907/11.08, allocations: 7.57 MB / 4.387 GB, free: 41.04 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001792/11.08, allocations: 361.7 kB / 4.387 GB, free: 40.63 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/11.08, allocations: 1.092 MB / 4.388 GB, free: 40.47 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002301/11.08, allocations: 28.42 kB / 4.388 GB, free: 40.44 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005599/11.08, allocations: 0.717 MB / 4.389 GB, free: 40.12 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/11.08, allocations: 488.9 kB / 4.389 GB, free: 39.87 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001125/11.08, allocations: 2.531 kB / 4.389 GB, free: 39.87 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.00015/11.08, allocations: 377.4 kB / 4.39 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/11.09, allocations: 1.024 MB / 4.391 GB, free: 39.56 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/11.09, allocations: 1.388 MB / 4.392 GB, free: 39.18 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005921/11.09, allocations: 1.999 MB / 4.394 GB, free: 39.14 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.218e-05/11.09, allocations: 0 / 4.394 GB, free: 39.14 MB / 0.6042 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01167/11.1, allocations: 4.359 MB / 4.398 GB, free: 38.92 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001372/11.11, allocations: 3.724 MB / 4.402 GB, free: 35.07 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/11.11, allocations: 7.188 kB / 4.402 GB, free: 35.07 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002267/11.11, allocations: 0.5759 MB / 4.403 GB, free: 35.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/11.11, allocations: 438.5 kB / 4.403 GB, free: 35.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002831/11.11, allocations: 3.09 MB / 4.406 GB, free: 32.93 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002421/11.12, allocations: 250.1 kB / 4.406 GB, free: 32.9 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/11.12, allocations: 97.95 kB / 4.406 GB, free: 32.9 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 9.968e-06/11.12, allocations: 3.875 kB / 4.406 GB, free: 32.9 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008231/11.12, allocations: 3.201 MB / 4.409 GB, free: 32.81 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/11.12, allocations: 8.938 kB / 4.409 GB, free: 32.81 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004607/11.12, allocations: 188.6 kB / 4.41 GB, free: 32.79 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001927/11.13, allocations: 466.2 kB / 4.41 GB, free: 32.78 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/11.13, allocations: 1.921 MB / 4.412 GB, free: 31.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/11.13, allocations: 223.5 kB / 4.412 GB, free: 31.19 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003216/11.13, allocations: 95.81 kB / 4.412 GB, free: 31.19 MB / 0.6042 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 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.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_b.phase,pipe2.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007494/11.13, allocations: 220.5 kB / 4.412 GB, free: 31.02 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002075/11.13, allocations: 0.6067 MB / 4.413 GB, free: 30.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009511/11.14, allocations: 6.323 MB / 4.419 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.001e-05/11.14, allocations: 55.52 kB / 4.419 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.475e-05/11.14, allocations: 3.812 kB / 4.419 GB, free: 30.43 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006615/11.15, allocations: 5.316 MB / 4.424 GB, free: 29.72 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01383/11.16, allocations: 8.755 MB / 4.433 GB, free: 28.89 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/11.16, allocations: 6.062 kB / 4.433 GB, free: 28.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/11.16, allocations: 266.4 kB / 4.433 GB, free: 28.88 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00259/11.17, allocations: 1.315 MB / 4.435 GB, free: 28.79 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002541/11.17, allocations: 41.95 kB / 4.435 GB, free: 28.79 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003249/11.17, allocations: 3.619 MB / 4.438 GB, free: 42.68 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/11.17, allocations: 3.969 kB / 4.438 GB, free: 42.68 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009549/11.18, allocations: 6.689 MB / 4.445 GB, free: 42.11 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001486/11.18, allocations: 0.6631 MB / 4.445 GB, free: 41.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006554/11.18, allocations: 22.11 kB / 4.445 GB, free: 41.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001732/11.18, allocations: 152.9 kB / 4.445 GB, free: 41.86 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000227/11.18, allocations: 109 kB / 4.446 GB, free: 41.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001496/11.18, allocations: 69.33 kB / 4.446 GB, free: 41.86 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001569/11.19, allocations: 1.076 MB / 4.447 GB, free: 41.75 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.01029/11.2, allocations: 2.666 MB / 4.449 GB, free: 41.72 MB / 0.6198 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,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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (141): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.01233/11.21, allocations: 3.159 MB / 4.452 GB, free: 41.26 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007886/11.22, allocations: 4.912 MB / 4.457 GB, free: 41.08 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/11.22, allocations: 0 / 4.457 GB, free: 41.08 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.00321/11.22, allocations: 2.609 MB / 4.46 GB, free: 41 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004442/11.22, allocations: 0.7647 MB / 4.46 GB, free: 40.96 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009958/11.23, allocations: 5.266 MB / 4.466 GB, free: 39.86 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002711/11.24, allocations: 2.213 MB / 4.468 GB, free: 39.07 MB / 0.6198 GB Notification: Performance of SimCode: time 9.01e-07/11.24, allocations: 0 / 4.468 GB, free: 39.07 MB / 0.6198 GB Notification: Performance of Templates: time 0.3632/11.6, allocations: 87.57 MB / 4.553 GB, free: 136.6 MB / 0.6198 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches