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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13",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.001406/0.001406, allocations: 203.4 kB / 8.542 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.268/1.268, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001036/0.001036, allocations: 93.28 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.1832/0.1832, allocations: 45.15 MB / 383.3 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2427/0.4259, allocations: 69.37 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.5301, allocations: 63.24 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.592/5.122, allocations: 2.831 GB / 3.335 GB, free: 89.29 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001655/5.122, allocations: 79.95 kB / 3.335 GB, free: 89.21 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 2.456/7.578, allocations: 0.8764 GB / 4.211 GB, free: 34.13 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/7.579, allocations: 9.969 kB / 4.211 GB, free: 34.13 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006011/7.585, allocations: 0.8116 MB / 4.212 GB, free: 33.94 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005428/7.59, allocations: 1.961 MB / 4.214 GB, free: 33.04 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001501/7.59, allocations: 88.86 kB / 4.214 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000451/7.591, allocations: 105.9 kB / 4.214 GB, free: 33.03 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004075/7.595, allocations: 2.421 MB / 4.217 GB, free: 32.22 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004398/7.599, allocations: 2.639 MB / 4.219 GB, free: 30.85 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.116e-05/7.599, allocations: 7.938 kB / 4.219 GB, free: 30.84 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002122/7.599, allocations: 12.78 kB / 4.219 GB, free: 30.83 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/7.6, allocations: 151.6 kB / 4.219 GB, free: 30.71 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4337/8.033, allocations: 141.5 MB / 4.358 GB, free: 33.52 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/8.035, allocations: 1.036 MB / 4.359 GB, free: 33.49 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0011/8.036, allocations: 0.9313 MB / 4.359 GB, free: 33.48 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03663/8.073, allocations: 19.39 MB / 4.378 GB, free: 36.34 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003041/8.076, allocations: 1.136 MB / 4.379 GB, free: 36.18 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 7.243e-06/8.076, allocations: 0 / 4.379 GB, free: 36.18 MB / 0.5886 GB Notification: Performance of matching and sorting (n=148): time 0.03669/8.113, allocations: 7.572 MB / 4.387 GB, free: 34.78 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001869/8.113, allocations: 356.5 kB / 4.387 GB, free: 34.37 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002133/8.115, allocations: 1.1 MB / 4.388 GB, free: 34.21 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0004258/8.115, allocations: 28.3 kB / 4.388 GB, free: 34.18 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007097/8.116, allocations: 0.7134 MB / 4.389 GB, free: 33.86 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.000738/8.117, allocations: 487.9 kB / 4.389 GB, free: 33.62 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002453/8.117, allocations: 2.062 kB / 4.389 GB, free: 33.62 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001995/8.117, allocations: 378.6 kB / 4.39 GB, free: 33.31 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/8.119, allocations: 1.027 MB / 4.391 GB, free: 33.31 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/8.121, allocations: 1.386 MB / 4.392 GB, free: 32.92 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006504/8.128, allocations: 2 MB / 4.394 GB, free: 32.88 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.098e-05/8.128, allocations: 1.094 kB / 4.394 GB, free: 32.88 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01435/8.142, allocations: 4.36 MB / 4.398 GB, free: 32.66 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.001671/8.144, allocations: 3.717 MB / 4.402 GB, free: 28.82 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.112e-05/8.144, allocations: 9.375 kB / 4.402 GB, free: 28.82 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002469/8.147, allocations: 0.5736 MB / 4.403 GB, free: 28.77 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002113/8.149, allocations: 440.4 kB / 4.403 GB, free: 28.77 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003042/8.152, allocations: 3.097 MB / 4.406 GB, free: 26.68 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002683/8.154, allocations: 250.8 kB / 4.406 GB, free: 26.64 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004295/8.155, allocations: 95.52 kB / 4.406 GB, free: 26.64 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 8.676e-06/8.155, allocations: 3.812 kB / 4.406 GB, free: 26.64 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008787/8.164, allocations: 3.198 MB / 4.41 GB, free: 26.56 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.86e-05/8.164, allocations: 10.97 kB / 4.41 GB, free: 26.56 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005039/8.164, allocations: 190.6 kB / 4.41 GB, free: 26.53 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/8.166, allocations: 463.4 kB / 4.41 GB, free: 26.53 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/8.168, allocations: 1.918 MB / 4.412 GB, free: 40.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/8.17, allocations: 219.8 kB / 4.412 GB, free: 40.94 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004076/8.171, allocations: 94.56 kB / 4.412 GB, free: 40.94 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.0007701/8.171, allocations: 236.8 kB / 4.413 GB, free: 40.77 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00251/8.174, allocations: 0.607 MB / 4.413 GB, free: 40.68 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00927/8.183, allocations: 6.316 MB / 4.419 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.512e-05/8.183, allocations: 57.89 kB / 4.419 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.846e-06/8.183, allocations: 0 / 4.419 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006845/8.19, allocations: 5.325 MB / 4.425 GB, free: 39.46 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01341/8.204, allocations: 8.755 MB / 4.433 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/8.204, allocations: 2.594 kB / 4.433 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001284/8.205, allocations: 265.1 kB / 4.433 GB, free: 38.62 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002491/8.207, allocations: 1.307 MB / 4.435 GB, free: 38.54 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000308/8.208, allocations: 45.03 kB / 4.435 GB, free: 38.54 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003291/8.211, allocations: 3.621 MB / 4.438 GB, free: 36.41 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/8.211, allocations: 1.219 kB / 4.438 GB, free: 36.41 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01131/8.222, allocations: 6.69 MB / 4.445 GB, free: 35.85 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01284/8.235, allocations: 9.037 MB / 4.454 GB, free: 34.89 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001778/8.237, allocations: 0.6592 MB / 4.454 GB, free: 34.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006609/8.238, allocations: 17.94 kB / 4.454 GB, free: 34.67 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/8.24, allocations: 157.1 kB / 4.454 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003028/8.24, allocations: 116 kB / 4.454 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001784/8.24, allocations: 72.27 kB / 4.455 GB, free: 34.64 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001558/8.242, allocations: 1.071 MB / 4.456 GB, free: 34.54 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01231/8.254, allocations: 3.207 MB / 4.459 GB, free: 34.52 MB / 0.6042 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.01086/8.265, allocations: 3.161 MB / 4.462 GB, free: 34.07 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007051/8.272, allocations: 4.915 MB / 4.467 GB, free: 33.89 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/8.272, allocations: 3.625 kB / 4.467 GB, free: 33.89 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.002999/8.275, allocations: 2.605 MB / 4.469 GB, free: 33.8 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004333/8.279, allocations: 0.764 MB / 4.47 GB, free: 33.76 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009435/8.289, allocations: 5.292 MB / 4.475 GB, free: 31.61 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002443/8.291, allocations: 2.231 MB / 4.477 GB, free: 29.93 MB / 0.6042 GB Notification: Performance of SimCode: time 8.62e-07/8.291, allocations: 0 / 4.477 GB, free: 29.93 MB / 0.6042 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes13.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1)