Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001539/0.001539, allocations: 192.6 kB / 7.804 MB, free: 2.504 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.709/1.709, 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.001559/0.001559, allocations: 86.88 kB / 261.4 MB, free: 13.54 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.24/0.24, allocations: 43.49 MB / 352.9 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.27/0.51, allocations: 64.96 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.443/0.953, allocations: 58.83 MB / 476.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.591/2.544, allocations: 0.6584 GB / 1.124 GB, free: 98.04 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/2.545, allocations: 83.45 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 2.511/5.056, allocations: 0.6087 GB / 1.733 GB, free: 38.31 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/5.056, allocations: 6.281 kB / 1.733 GB, free: 38.31 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004829/5.061, allocations: 461 kB / 1.733 GB, free: 38.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009751/5.071, allocations: 2.024 MB / 1.735 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/5.071, allocations: 64.44 kB / 1.735 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/5.072, allocations: 100.3 kB / 1.735 GB, free: 37.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006317/5.078, allocations: 2.276 MB / 1.737 GB, free: 37.02 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006062/5.084, allocations: 2.525 MB / 1.74 GB, free: 35.92 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.033e-05/5.085, allocations: 11.16 kB / 1.74 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002934/5.085, allocations: 6.938 kB / 1.74 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002494/5.085, allocations: 169.2 kB / 1.74 GB, free: 35.89 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/5.104, allocations: 11.99 MB / 1.752 GB, free: 27.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/5.106, allocations: 1.127 MB / 1.753 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/5.108, allocations: 1.077 MB / 1.754 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001044/5.109, allocations: 462.4 kB / 1.754 GB, free: 26.21 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001994/5.111, allocations: 1.265 MB / 1.756 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=167): time 4.649e-06/5.111, allocations: 0 / 1.756 GB, free: 25.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=192): time 0.05081/5.162, allocations: 10.48 MB / 1.766 GB, free: 23 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003404/5.162, allocations: 366.4 kB / 1.766 GB, free: 22.59 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004239/5.167, allocations: 1.103 MB / 1.767 GB, free: 21.81 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007836/5.168, allocations: 29.7 kB / 1.767 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.001164/5.169, allocations: 0.6794 MB / 1.768 GB, free: 21.18 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001392/5.17, allocations: 0.6257 MB / 1.769 GB, free: 20.6 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004771/5.171, allocations: 0 / 1.769 GB, free: 20.6 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0002661/5.171, allocations: 393.1 kB / 1.769 GB, free: 20.24 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/5.173, allocations: 1.056 MB / 1.77 GB, free: 19.29 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002391/5.176, allocations: 1.53 MB / 1.771 GB, free: 17.73 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01156/5.187, allocations: 2.493 MB / 1.774 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.117e-05/5.187, allocations: 4 kB / 1.774 GB, free: 15.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01727/5.204, allocations: 4.305 MB / 1.778 GB, free: 12.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001043/5.206, allocations: 4.179 MB / 1.782 GB, free: 8.016 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.834e-05/5.206, allocations: 16 kB / 1.782 GB, free: 8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007812/5.206, allocations: 296.3 kB / 1.782 GB, free: 7.746 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002892/5.209, allocations: 0.5475 MB / 1.783 GB, free: 7.281 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/5.211, allocations: 3.064 MB / 1.786 GB, free: 4.184 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/5.215, allocations: 177 kB / 1.786 GB, free: 4.051 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006616/5.215, allocations: 203.8 kB / 1.786 GB, free: 3.867 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/5.215, allocations: 4 kB / 1.786 GB, free: 3.863 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0133/5.229, allocations: 3.734 MB / 1.79 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.616e-05/5.229, allocations: 16.62 kB / 1.79 GB, free: 0.8281 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007383/5.229, allocations: 281.9 kB / 1.79 GB, free: 0.582 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002608/5.232, allocations: 0.5464 MB / 1.791 GB, free: 120 kB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00277/5.235, allocations: 3.062 MB / 1.794 GB, free: 13.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003122/5.238, allocations: 173 kB / 1.794 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006716/5.239, allocations: 200.8 kB / 1.794 GB, free: 12.71 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (258): * Single equations (assignments): 251 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001262/5.24, allocations: 228.6 kB / 1.794 GB, free: 12.47 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/5.241, allocations: 205.6 kB / 1.795 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02138/5.262, allocations: 4.826 MB / 1.799 GB, free: 7.738 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-05/5.262, allocations: 23.91 kB / 1.799 GB, free: 7.715 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-05/5.263, allocations: 3.938 kB / 1.799 GB, free: 7.711 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01623/5.279, allocations: 3.882 MB / 1.803 GB, free: 3.727 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3558/5.635, allocations: 7.449 MB / 1.81 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.325e-05/5.635, allocations: 6.219 kB / 1.81 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002028/5.637, allocations: 455.2 kB / 1.811 GB, free: 97.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000821/5.638, allocations: 297.4 kB / 1.811 GB, free: 97.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/5.638, allocations: 85.81 kB / 1.811 GB, free: 97.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002432/5.64, allocations: 3.733 MB / 1.815 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.939e-06/5.64, allocations: 11.25 kB / 1.815 GB, free: 94.43 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01655/5.657, allocations: 5.812 MB / 1.821 GB, free: 93.49 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01998/5.677, allocations: 7.848 MB / 1.828 GB, free: 92.17 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00178/5.679, allocations: 0.5281 MB / 1.829 GB, free: 92.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000511/5.679, allocations: 28.8 kB / 1.829 GB, free: 92.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/5.681, allocations: 104 kB / 1.829 GB, free: 92.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003239/5.681, allocations: 161.6 kB / 1.829 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003098/5.682, allocations: 184.2 kB / 1.829 GB, free: 92.04 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001243/5.683, allocations: 0.8084 MB / 1.83 GB, free: 91.93 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01131/5.694, allocations: 2.413 MB / 1.832 GB, free: 91.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (200): * Single equations (assignments): 193 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008463/5.703, allocations: 2.861 MB / 1.835 GB, free: 91.62 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008689/5.711, allocations: 4.251 MB / 1.839 GB, free: 91.44 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.966e-05/5.712, allocations: 6.281 kB / 1.839 GB, free: 91.44 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002702/5.714, allocations: 1.513 MB / 1.841 GB, free: 91.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005771/5.72, allocations: 0.893 MB / 1.842 GB, free: 91.26 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/5.731, allocations: 4.335 MB / 1.846 GB, free: 90.33 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003566/5.735, allocations: 2.249 MB / 1.848 GB, free: 89.58 MB / 0.5261 GB Notification: Performance of SimCode: time 3.356e-06/5.735, allocations: 1.469 kB / 1.848 GB, free: 89.58 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)