Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) [: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.001196/0.001196, allocations: 203.4 kB / 8.543 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.208/1.208, allocations: 225.5 MB / 234.4 MB, free: 3.363 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008956/0.0008956, allocations: 96.58 kB / 286.3 MB, free: 5.238 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1704/0.1704, allocations: 45.14 MB / 383.3 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.197/0.3674, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08034/0.4477, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9199/1.368, allocations: 0.5617 GB / 1.066 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/1.368, allocations: 75.97 kB / 1.066 GB, free: 101.8 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 1.371/2.739, allocations: 0.5081 GB / 1.574 GB, free: 1.137 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/2.739, allocations: 8 kB / 1.574 GB, free: 1.129 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003347/2.742, allocations: 448.7 kB / 1.574 GB, free: 0.6875 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1658/2.908, allocations: 1.941 MB / 1.576 GB, free: 93.5 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/2.908, allocations: 56.12 kB / 1.576 GB, free: 93.5 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002884/2.908, allocations: 107 kB / 1.576 GB, free: 93.49 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003109/2.912, allocations: 2.199 MB / 1.578 GB, free: 93.48 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003111/2.915, allocations: 2.429 MB / 1.581 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.289e-05/2.915, allocations: 5.094 kB / 1.581 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000215/2.915, allocations: 4.406 kB / 1.581 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/2.915, allocations: 164 kB / 1.581 GB, free: 93.06 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01177/2.927, allocations: 11.88 MB / 1.592 GB, free: 86.22 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/2.928, allocations: 1.044 MB / 1.594 GB, free: 86.2 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001136/2.929, allocations: 1.007 MB / 1.595 GB, free: 86.19 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007354/2.93, allocations: 0.5064 MB / 1.595 GB, free: 85.72 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001406/2.932, allocations: 1.188 MB / 1.596 GB, free: 85.55 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=153): time 3.026e-06/2.932, allocations: 1.781 kB / 1.596 GB, free: 85.55 MB / 0.5417 GB Notification: Performance of matching and sorting (n=173): time 0.03776/2.969, allocations: 9.087 MB / 1.605 GB, free: 84.74 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/2.97, allocations: 359 kB / 1.605 GB, free: 84.34 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001496/2.971, allocations: 1.081 MB / 1.606 GB, free: 84.18 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002306/2.971, allocations: 28.77 kB / 1.606 GB, free: 84.14 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004222/2.972, allocations: 0.6595 MB / 1.607 GB, free: 83.85 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004282/2.972, allocations: 0.561 MB / 1.608 GB, free: 83.56 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/2.972, allocations: 0 / 1.608 GB, free: 83.56 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001017/2.972, allocations: 392.5 kB / 1.608 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001371/2.974, allocations: 1.012 MB / 1.609 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/2.975, allocations: 1.431 MB / 1.61 GB, free: 82.83 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/2.985, allocations: 2.307 MB / 1.613 GB, free: 82.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.121e-05/2.985, allocations: 4.094 kB / 1.613 GB, free: 82.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01295/2.998, allocations: 3.945 MB / 1.617 GB, free: 82.61 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000582/2.999, allocations: 3.642 MB / 1.62 GB, free: 78.89 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/2.999, allocations: 10.59 kB / 1.62 GB, free: 78.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004112/3, allocations: 168.1 kB / 1.62 GB, free: 78.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002466/3.002, allocations: 0.5307 MB / 1.621 GB, free: 78.86 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/3.003, allocations: 2.367 MB / 1.623 GB, free: 76.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002489/3.006, allocations: 181.6 kB / 1.623 GB, free: 76.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003393/3.006, allocations: 184.1 kB / 1.623 GB, free: 76.77 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.293e-06/3.006, allocations: 3.719 kB / 1.623 GB, free: 76.77 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01122/3.017, allocations: 3.396 MB / 1.627 GB, free: 76.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/3.017, allocations: 14.03 kB / 1.627 GB, free: 76.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/3.018, allocations: 168.7 kB / 1.627 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002385/3.02, allocations: 0.5269 MB / 1.627 GB, free: 76.67 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/3.021, allocations: 2.366 MB / 1.63 GB, free: 74.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002295/3.023, allocations: 169.2 kB / 1.63 GB, free: 74.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/3.024, allocations: 184.3 kB / 1.63 GB, free: 74.59 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0005728/3.024, allocations: 226.1 kB / 1.63 GB, free: 74.41 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003371/3.025, allocations: 191.3 kB / 1.63 GB, free: 74.32 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01601/3.041, allocations: 5.127 MB / 1.635 GB, free: 74.14 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.586e-05/3.041, allocations: 22.28 kB / 1.636 GB, free: 74.14 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.041e-05/3.041, allocations: 3.938 kB / 1.636 GB, free: 74.14 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01189/3.053, allocations: 3.53 MB / 1.639 GB, free: 73.62 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01775/3.07, allocations: 6.845 MB / 1.646 GB, free: 72.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/3.07, allocations: 6.375 kB / 1.646 GB, free: 72.68 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00196/3.072, allocations: 415.4 kB / 1.646 GB, free: 72.68 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003918/3.073, allocations: 168.3 kB / 1.646 GB, free: 72.64 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001961/3.073, allocations: 73.59 kB / 1.646 GB, free: 72.64 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001453/3.075, allocations: 3.032 MB / 1.649 GB, free: 69.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/3.075, allocations: 12.28 kB / 1.649 GB, free: 69.9 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01377/3.088, allocations: 5.328 MB / 1.654 GB, free: 68.85 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0156/3.104, allocations: 7.215 MB / 1.661 GB, free: 67.42 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001123/3.105, allocations: 0.5093 MB / 1.662 GB, free: 67.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004227/3.106, allocations: 24.89 kB / 1.662 GB, free: 67.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00145/3.107, allocations: 91.84 kB / 1.662 GB, free: 67.22 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002721/3.107, allocations: 150.5 kB / 1.662 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002471/3.108, allocations: 146.2 kB / 1.662 GB, free: 67.21 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001032/3.109, allocations: 0.8035 MB / 1.663 GB, free: 67.1 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006362/3.115, allocations: 2.094 MB / 1.665 GB, free: 67.1 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003725/3.119, allocations: 2.373 MB / 1.668 GB, free: 66.85 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.005478/3.124, allocations: 3.991 MB / 1.671 GB, free: 66.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/3.124, allocations: 3.781 kB / 1.671 GB, free: 66.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001726/3.126, allocations: 1.378 MB / 1.673 GB, free: 66.51 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003722/3.13, allocations: 0.7494 MB / 1.674 GB, free: 66.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007568/3.137, allocations: 4.069 MB / 1.677 GB, free: 65.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003038/3.14, allocations: 2.255 MB / 1.68 GB, free: 64.85 MB / 0.5417 GB Notification: Performance of SimCode: time 5.91e-07/3.14, allocations: 0 / 1.68 GB, free: 64.85 MB / 0.5417 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)