Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.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.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2",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.001096/0.001096, allocations: 198.6 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008948/0.0008948, allocations: 94.31 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1695/0.1695, allocations: 45.14 MB / 383.3 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1905/0.3601, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.4457, allocations: 63.24 MB / 0.5039 GB, free: 12.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.216/4.662, allocations: 2.83 GB / 3.334 GB, free: 77 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/4.662, allocations: 79.95 kB / 3.334 GB, free: 76.93 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: 322 * Number of variables: 322 Notification: Performance of Generate backend data structure: time 1.887/6.549, allocations: 0.5818 GB / 3.916 GB, free: 51.64 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/6.549, allocations: 6.906 kB / 3.916 GB, free: 51.64 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004291/6.553, allocations: 0.5662 MB / 3.916 GB, free: 51.55 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00378/6.557, allocations: 1.448 MB / 3.918 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-05/6.557, allocations: 63.47 kB / 3.918 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002939/6.557, allocations: 80.69 kB / 3.918 GB, free: 51.18 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002552/6.56, allocations: 1.612 MB / 3.919 GB, free: 51.17 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002504/6.563, allocations: 1.812 MB / 3.921 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.501e-05/6.563, allocations: 7.688 kB / 3.921 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001353/6.563, allocations: 3.812 kB / 3.921 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.725e-05/6.563, allocations: 108.6 kB / 3.921 GB, free: 50.79 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3577/6.921, allocations: 100.1 MB / 4.019 GB, free: 132.2 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009292/6.921, allocations: 0.6846 MB / 4.02 GB, free: 132.2 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006675/6.922, allocations: 0.5906 MB / 4.02 GB, free: 132.1 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03184/6.954, allocations: 19.3 MB / 4.039 GB, free: 119.8 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001097/6.955, allocations: 0.7375 MB / 4.04 GB, free: 119.7 MB / 0.573 GB Notification: Performance of pre-optimization done (n=88): time 3.617e-06/6.955, allocations: 3.562 kB / 4.04 GB, free: 119.7 MB / 0.573 GB Notification: Performance of matching and sorting (n=96): time 0.01166/6.967, allocations: 4.846 MB / 4.045 GB, free: 118.7 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.422e-05/6.967, allocations: 380.3 kB / 4.045 GB, free: 118.2 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/6.968, allocations: 0.8158 MB / 4.046 GB, free: 118.1 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 8.406e-05/6.968, allocations: 28.39 kB / 4.046 GB, free: 118 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003132/6.968, allocations: 0.5265 MB / 4.046 GB, free: 117.8 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002221/6.969, allocations: 323.9 kB / 4.047 GB, free: 117.6 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.708e-05/6.969, allocations: 0 / 4.047 GB, free: 117.6 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 7.888e-05/6.969, allocations: 356.1 kB / 4.047 GB, free: 117.3 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009072/6.97, allocations: 0.6783 MB / 4.048 GB, free: 117.3 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009566/6.971, allocations: 0.9713 MB / 4.049 GB, free: 117 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003819/6.975, allocations: 1.295 MB / 4.05 GB, free: 117 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/6.975, allocations: 0 / 4.05 GB, free: 117 MB / 0.573 GB Notification: Performance of matching and sorting (n=156) (initialization): time 0.006822/6.981, allocations: 2.791 MB / 4.053 GB, free: 116.9 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004078/6.982, allocations: 2.699 MB / 4.055 GB, free: 114.1 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/6.982, allocations: 16.88 kB / 4.055 GB, free: 114.1 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/6.982, allocations: 122 kB / 4.055 GB, free: 114.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001311/6.983, allocations: 328.2 kB / 4.056 GB, free: 114.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006821/6.984, allocations: 1.285 MB / 4.057 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/6.986, allocations: 179 kB / 4.057 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000148/6.986, allocations: 63.34 kB / 4.057 GB, free: 113 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 6.843e-06/6.986, allocations: 4.688 kB / 4.057 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005028/6.991, allocations: 2.108 MB / 4.059 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/6.991, allocations: 7.688 kB / 4.059 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002957/6.991, allocations: 129.3 kB / 4.059 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/6.992, allocations: 317.6 kB / 4.06 GB, free: 113 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000654/6.993, allocations: 1.281 MB / 4.061 GB, free: 111.9 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/6.994, allocations: 159.5 kB / 4.061 GB, free: 111.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/6.995, allocations: 62.75 kB / 4.061 GB, free: 111.9 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 17 (pipe3.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,pipe1.state_a.phase,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening1.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003134/6.995, allocations: 174.7 kB / 4.061 GB, free: 111.8 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001124/6.996, allocations: 430.7 kB / 4.062 GB, free: 111.7 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004842/7.001, allocations: 3.729 MB / 4.065 GB, free: 111.4 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-05/7.001, allocations: 35.41 kB / 4.065 GB, free: 111.4 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/7.001, allocations: 5.297 kB / 4.065 GB, free: 111.4 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00329/7.004, allocations: 2.925 MB / 4.068 GB, free: 111.1 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006471/7.011, allocations: 5.517 MB / 4.074 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/7.011, allocations: 0 / 4.074 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/7.012, allocations: 186.1 kB / 4.074 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004848/7.012, allocations: 171.3 kB / 4.074 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.052e-05/7.012, allocations: 30.14 kB / 4.074 GB, free: 110.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000854/7.013, allocations: 1.364 MB / 4.075 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/7.013, allocations: 1.875 kB / 4.075 GB, free: 109.3 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005438/7.018, allocations: 4.084 MB / 4.079 GB, free: 108.9 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006656/7.025, allocations: 5.687 MB / 4.085 GB, free: 108.1 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000822/7.026, allocations: 0.4988 MB / 4.085 GB, free: 108 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002799/7.026, allocations: 17.92 kB / 4.085 GB, free: 108 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/7.027, allocations: 99.58 kB / 4.085 GB, free: 108 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/7.027, allocations: 73.95 kB / 4.085 GB, free: 108 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-05/7.028, allocations: 46 kB / 4.086 GB, free: 108 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001059/7.029, allocations: 0.8699 MB / 4.086 GB, free: 107.8 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.008455/7.037, allocations: 2.629 MB / 4.089 GB, free: 107.8 MB / 0.573 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,valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 22 ($cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$whenCondition1,pipe1.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled) * Number of discrete states: 6 (valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 7 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006594/7.044, allocations: 2.589 MB / 4.091 GB, free: 107.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.003997/7.048, allocations: 3.21 MB / 4.095 GB, free: 107.4 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/7.048, allocations: 2.688 kB / 4.095 GB, free: 107.4 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001549/7.049, allocations: 1.566 MB / 4.096 GB, free: 107.4 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002272/7.052, allocations: 497 kB / 4.097 GB, free: 107.3 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005219/7.057, allocations: 3.486 MB / 4.1 GB, free: 106.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/7.058, allocations: 1.746 MB / 4.102 GB, free: 106 MB / 0.573 GB Notification: Performance of SimCode: time 4.21e-07/7.058, allocations: 0 / 4.102 GB, free: 106 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_SeriesPipes2.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.SeriesPipes2.pipe 2>&1)