Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16",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 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 185.4 kB / 7.802 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 87.69 kB / 261.4 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2346/0.2346, allocations: 43.49 MB / 352.8 MB, free: 1.984 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2596/0.4943, allocations: 64.96 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4249/0.9192, allocations: 58.84 MB / 476.6 MB, free: 5.309 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.598/2.517, allocations: 0.6583 GB / 1.124 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003058/2.517, allocations: 75.47 kB / 1.124 GB, free: 97.96 MB / 0.4948 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 2.327/4.844, allocations: 0.5451 GB / 1.669 GB, free: 41.45 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/4.844, allocations: 10.94 kB / 1.669 GB, free: 41.45 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005447/4.85, allocations: 443.5 kB / 1.669 GB, free: 41.33 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009784/4.859, allocations: 1.953 MB / 1.671 GB, free: 40.89 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/4.86, allocations: 53.25 kB / 1.671 GB, free: 40.89 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001324/4.861, allocations: 101.8 kB / 1.671 GB, free: 40.89 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005622/4.867, allocations: 2.194 MB / 1.674 GB, free: 40.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006523/4.873, allocations: 2.421 MB / 1.676 GB, free: 40.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.648e-05/4.873, allocations: 2.719 kB / 1.676 GB, free: 40.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006054/4.874, allocations: 10.19 kB / 1.676 GB, free: 40.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/4.874, allocations: 164.1 kB / 1.676 GB, free: 40.45 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01866/4.893, allocations: 11.47 MB / 1.687 GB, free: 34.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/4.895, allocations: 1.036 MB / 1.688 GB, free: 34.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001557/4.896, allocations: 1.004 MB / 1.689 GB, free: 34.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001143/4.897, allocations: 455.2 kB / 1.69 GB, free: 33.76 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002065/4.899, allocations: 1.185 MB / 1.691 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 5.22e-06/4.899, allocations: 0 / 1.691 GB, free: 33.59 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.04785/4.947, allocations: 9.537 MB / 1.7 GB, free: 32.69 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002219/4.948, allocations: 360.1 kB / 1.701 GB, free: 32.29 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/4.951, allocations: 1.077 MB / 1.702 GB, free: 32.11 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006694/4.951, allocations: 30.45 kB / 1.702 GB, free: 32.08 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000925/4.952, allocations: 0.6623 MB / 1.702 GB, free: 31.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000997/4.953, allocations: 0.5579 MB / 1.703 GB, free: 31.33 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003459/4.954, allocations: 0 / 1.703 GB, free: 31.33 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001899/4.954, allocations: 388.5 kB / 1.703 GB, free: 31.03 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001944/4.956, allocations: 1.009 MB / 1.704 GB, free: 31.02 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002421/4.958, allocations: 1.433 MB / 1.706 GB, free: 30.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/4.97, allocations: 2.446 MB / 1.708 GB, free: 30.58 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.398e-05/4.97, allocations: 6.438 kB / 1.708 GB, free: 30.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01669/4.986, allocations: 4.083 MB / 1.712 GB, free: 30.38 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001097/4.988, allocations: 3.64 MB / 1.716 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.802e-05/4.988, allocations: 12.97 kB / 1.716 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000483/4.988, allocations: 168.5 kB / 1.716 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002888/4.991, allocations: 0.5294 MB / 1.716 GB, free: 26.63 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001707/4.993, allocations: 2.364 MB / 1.719 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003558/4.996, allocations: 176.6 kB / 1.719 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007394/4.997, allocations: 182.9 kB / 1.719 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/4.997, allocations: 6.594 kB / 1.719 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01391/5.011, allocations: 3.531 MB / 1.722 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.769e-05/5.011, allocations: 7.625 kB / 1.722 GB, free: 24.46 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003989/5.012, allocations: 176.4 kB / 1.722 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002673/5.014, allocations: 0.5168 MB / 1.723 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001675/5.016, allocations: 2.365 MB / 1.725 GB, free: 22.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003338/5.019, allocations: 167.5 kB / 1.725 GB, free: 22.35 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006128/5.02, allocations: 178.1 kB / 1.726 GB, free: 22.35 MB / 0.5105 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.001396/5.021, allocations: 228.4 kB / 1.726 GB, free: 22.17 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/5.022, allocations: 193.9 kB / 1.726 GB, free: 22.08 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01736/5.04, allocations: 4.279 MB / 1.73 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-05/5.04, allocations: 23 kB / 1.73 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.231e-05/5.04, allocations: 0 / 1.73 GB, free: 21.91 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01328/5.053, allocations: 3.536 MB / 1.734 GB, free: 21.39 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02253/5.076, allocations: 6.858 MB / 1.74 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.143e-05/5.076, allocations: 5.094 kB / 1.74 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002295/5.078, allocations: 405.5 kB / 1.741 GB, free: 20.44 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005856/5.079, allocations: 171.1 kB / 1.741 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003291/5.079, allocations: 68.05 kB / 1.741 GB, free: 20.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/5.081, allocations: 3.037 MB / 1.744 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.457e-05/5.081, allocations: 9.188 kB / 1.744 GB, free: 17.66 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02179/5.103, allocations: 5.336 MB / 1.749 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02496/5.128, allocations: 7.234 MB / 1.756 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002087/5.13, allocations: 0.5109 MB / 1.757 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001104/5.132, allocations: 29.97 kB / 1.757 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0026/5.134, allocations: 93.38 kB / 1.757 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005089/5.135, allocations: 139 kB / 1.757 GB, free: 13.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005617/5.135, allocations: 149.8 kB / 1.757 GB, free: 13.94 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002149/5.137, allocations: 0.8011 MB / 1.758 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01415/5.152, allocations: 2.282 MB / 1.76 GB, free: 12.8 MB / 0.5105 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.009855/5.162, allocations: 2.683 MB / 1.763 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01163/5.173, allocations: 3.982 MB / 1.767 GB, free: 9.852 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.918e-05/5.173, allocations: 7.859 kB / 1.767 GB, free: 9.844 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.002844/5.176, allocations: 1.369 MB / 1.768 GB, free: 8.57 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005459/5.182, allocations: 0.7734 MB / 1.769 GB, free: 8.031 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01286/5.195, allocations: 4.059 MB / 1.773 GB, free: 4.594 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005013/5.2, allocations: 2.159 MB / 1.775 GB, free: 2.812 MB / 0.5105 GB Notification: Performance of SimCode: time 2.375e-06/5.2, allocations: 0 / 1.775 GB, free: 2.812 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes16.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1)