Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",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.001142/0.001142, allocations: 207.9 kB / 8.541 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.308/1.308, allocations: 225.5 MB / 234.4 MB, free: 3.312 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001026/0.001026, allocations: 98.28 kB / 286.3 MB, free: 5.293 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1731/0.1731, allocations: 45.14 MB / 383.4 MB, free: 0.5195 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2221/0.3952, allocations: 69.35 MB / 452.7 MB, free: 76.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.4957, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.683/5.179, allocations: 2.83 GB / 3.334 GB, free: 90.33 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001748/5.179, allocations: 75.97 kB / 3.334 GB, free: 90.26 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 2.551/7.73, allocations: 0.8146 GB / 4.149 GB, free: 41.55 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/7.73, allocations: 11.12 kB / 4.149 GB, free: 41.55 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007072/7.737, allocations: 0.8628 MB / 4.15 GB, free: 41.41 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006462/7.744, allocations: 2.185 MB / 4.152 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000171/7.744, allocations: 91.3 kB / 4.152 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008112/7.745, allocations: 117.9 kB / 4.152 GB, free: 40.95 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00533/7.75, allocations: 2.944 MB / 4.155 GB, free: 40.93 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004278/7.754, allocations: 2.965 MB / 4.158 GB, free: 40.38 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.905e-05/7.754, allocations: 5.188 kB / 4.158 GB, free: 40.38 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/7.755, allocations: 5.844 kB / 4.158 GB, free: 40.38 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001367/7.755, allocations: 177.8 kB / 4.158 GB, free: 40.38 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4409/8.196, allocations: 142 MB / 4.297 GB, free: 118 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00158/8.197, allocations: 1.192 MB / 4.298 GB, free: 118 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001188/8.199, allocations: 1.033 MB / 4.299 GB, free: 118 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03317/8.232, allocations: 19.4 MB / 4.318 GB, free: 105.5 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0019/8.234, allocations: 1.273 MB / 4.319 GB, free: 105.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 3.136e-06/8.234, allocations: 0 / 4.319 GB, free: 105.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02122/8.255, allocations: 8.331 MB / 4.327 GB, free: 103.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/8.255, allocations: 0.5064 MB / 4.328 GB, free: 103.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001622/8.257, allocations: 1.222 MB / 4.329 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0001907/8.257, allocations: 29.27 kB / 4.329 GB, free: 103.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005199/8.257, allocations: 0.7735 MB / 4.33 GB, free: 102.8 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004614/8.258, allocations: 0.5339 MB / 4.33 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/8.258, allocations: 0 / 4.33 GB, free: 102.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 9.774e-05/8.258, allocations: 387.8 kB / 4.331 GB, free: 102.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/8.26, allocations: 1.172 MB / 4.332 GB, free: 102.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/8.261, allocations: 1.602 MB / 4.333 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006486/8.268, allocations: 2.196 MB / 4.335 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/8.268, allocations: 3.594 kB / 4.335 GB, free: 101.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01145/8.279, allocations: 4.766 MB / 4.34 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005167/8.28, allocations: 3.923 MB / 4.344 GB, free: 97.53 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.852e-05/8.28, allocations: 15.67 kB / 4.344 GB, free: 97.53 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003913/8.284, allocations: 0.873 MB / 4.345 GB, free: 97.49 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/8.286, allocations: 475.6 kB / 4.345 GB, free: 97.49 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003185/8.289, allocations: 3.52 MB / 4.349 GB, free: 95.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/8.291, allocations: 247.1 kB / 4.349 GB, free: 95.39 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/8.292, allocations: 112.6 kB / 4.349 GB, free: 95.39 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.254e-06/8.292, allocations: 2.469 kB / 4.349 GB, free: 95.39 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008501/8.3, allocations: 3.642 MB / 4.353 GB, free: 95.31 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.419e-05/8.3, allocations: 10.69 kB / 4.353 GB, free: 95.31 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/8.301, allocations: 355.2 kB / 4.353 GB, free: 95.28 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/8.303, allocations: 0.4916 MB / 4.353 GB, free: 95.28 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/8.307, allocations: 3.98 MB / 4.357 GB, free: 92.5 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002125/8.309, allocations: 219.3 kB / 4.357 GB, free: 92.5 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002274/8.309, allocations: 100.3 kB / 4.358 GB, free: 92.5 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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_b.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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0005232/8.309, allocations: 237.4 kB / 4.358 GB, free: 92.32 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001681/8.311, allocations: 0.6228 MB / 4.358 GB, free: 92.23 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008846/8.32, allocations: 6.797 MB / 4.365 GB, free: 91.76 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.009e-05/8.32, allocations: 52.98 kB / 4.365 GB, free: 91.76 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/8.32, allocations: 0 / 4.365 GB, free: 91.76 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006421/8.326, allocations: 5.732 MB / 4.371 GB, free: 91.05 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/8.338, allocations: 9.38 MB / 4.38 GB, free: 90.2 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/8.338, allocations: 0 / 4.38 GB, free: 90.2 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/8.339, allocations: 274.9 kB / 4.38 GB, free: 90.2 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003744/8.343, allocations: 2.068 MB / 4.382 GB, free: 90.1 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001886/8.343, allocations: 49.2 kB / 4.382 GB, free: 90.1 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003578/8.347, allocations: 4.28 MB / 4.386 GB, free: 87.99 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/8.347, allocations: 4.188 kB / 4.386 GB, free: 87.99 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01045/8.357, allocations: 7.248 MB / 4.393 GB, free: 87.37 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01257/8.37, allocations: 9.775 MB / 4.403 GB, free: 86.37 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00153/8.372, allocations: 0.7056 MB / 4.404 GB, free: 86.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004897/8.372, allocations: 24.09 kB / 4.404 GB, free: 86.14 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/8.374, allocations: 153.4 kB / 4.404 GB, free: 86.13 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/8.374, allocations: 119.9 kB / 4.404 GB, free: 86.13 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001702/8.374, allocations: 67.12 kB / 4.404 GB, free: 86.13 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001516/8.376, allocations: 1.169 MB / 4.405 GB, free: 85.98 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01153/8.387, allocations: 3.319 MB / 4.408 GB, free: 85.87 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse8.phase,$cse8.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse37.phase,$cse37.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 (145): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01079/8.398, allocations: 3.098 MB / 4.411 GB, free: 85.57 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.00784/8.406, allocations: 5.618 MB / 4.417 GB, free: 85.15 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 1.64e-05/8.406, allocations: 0 / 4.417 GB, free: 85.15 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003792/8.41, allocations: 2.75 MB / 4.42 GB, free: 85.07 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004066/8.414, allocations: 0.7481 MB / 4.42 GB, free: 85.05 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008819/8.423, allocations: 5.707 MB / 4.426 GB, free: 84.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/8.425, allocations: 2.363 MB / 4.428 GB, free: 83.29 MB / 0.6042 GB Notification: Performance of SimCode: time 9.02e-07/8.425, allocations: 3.469 kB / 4.428 GB, free: 83.29 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)