Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.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) 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(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_BranchingDynamicPipes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.BranchingDynamicPipes,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_BranchingDynamicPipes",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.001001/0.001001, allocations: 179.8 kB / 8.478 MB, free: 1.879 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.032/1.032, allocations: 205.2 MB / 214.1 MB, free: 13.85 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.0008799/0.0008798, allocations: 80.08 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08327/0.08418, allocations: 52.98 MB / 315.1 MB, free: 8.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1703/0.2545, allocations: 47.55 MB / 362.6 MB, free: 45.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.548/4.802, allocations: 3.616 GB / 3.97 GB, free: 64.83 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/4.802, allocations: 71.97 kB / 3.97 GB, free: 64.76 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2025 * Number of variables: 2025 Notification: Performance of Generate backend data structure: time 3.154/7.956, allocations: 0.987 GB / 4.957 GB, free: 18.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/7.956, allocations: 9.312 kB / 4.957 GB, free: 18.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006788/7.963, allocations: 0.8759 MB / 4.958 GB, free: 18.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01755/7.981, allocations: 5.726 MB / 4.964 GB, free: 17.48 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004437/7.981, allocations: 251 kB / 4.964 GB, free: 17.48 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004162/7.985, allocations: 430.8 kB / 4.964 GB, free: 17.47 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02996/8.015, allocations: 16.28 MB / 4.98 GB, free: 17.44 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03787/8.053, allocations: 13.48 MB / 4.993 GB, free: 16.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000433/8.054, allocations: 25.66 kB / 4.993 GB, free: 16.79 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00394/8.058, allocations: 12.86 kB / 4.993 GB, free: 16.79 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006387/8.058, allocations: 0.7422 MB / 4.994 GB, free: 16.77 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09884/8.157, allocations: 48.29 MB / 5.041 GB, free: 4.273 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02232/8.179, allocations: 8.689 MB / 5.05 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01341/8.193, allocations: 7.845 MB / 5.057 GB, free: 7.867 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004144/8.197, allocations: 4.137 MB / 5.061 GB, free: 3.074 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000154/8.197, allocations: 150.6 kB / 5.062 GB, free: 2.918 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=925): time 1.435e-05/8.197, allocations: 4 kB / 5.062 GB, free: 2.914 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1187): time 0.4436/8.641, allocations: 82.39 MB / 5.142 GB, free: 84.37 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/8.641, allocations: 173.2 kB / 5.142 GB, free: 84.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003106/8.644, allocations: 2.289 MB / 5.144 GB, free: 84.07 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.002438/8.646, allocations: 33.11 kB / 5.144 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007595/8.647, allocations: 1.928 MB / 5.146 GB, free: 83.03 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003726/8.651, allocations: 3.978 MB / 5.15 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001082/8.652, allocations: 0 / 5.15 GB, free: 80.39 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005499/8.653, allocations: 0.7625 MB / 5.151 GB, free: 80.07 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01232/8.665, allocations: 9.684 MB / 5.16 GB, free: 80.04 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01651/8.682, allocations: 10.9 MB / 5.171 GB, free: 79.15 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0365/8.718, allocations: 14.31 MB / 5.185 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.01e-05/8.718, allocations: 7.031 kB / 5.185 GB, free: 79.02 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.06887/8.787, allocations: 34.36 MB / 5.219 GB, free: 57.03 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001128/8.788, allocations: 9.271 MB / 5.228 GB, free: 47.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.863e-05/8.788, allocations: 20 kB / 5.228 GB, free: 47.2 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1917/8.98, allocations: 41.89 MB / 5.269 GB, free: 16.96 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005323/8.985, allocations: 1.057 MB / 5.27 GB, free: 16.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2553/9.241, allocations: 40.55 MB / 5.309 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01676/9.257, allocations: 1.405 MB / 5.311 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003916/9.261, allocations: 0.609 MB / 5.311 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/9.261, allocations: 5.719 kB / 5.311 GB, free: 80.06 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07561/9.337, allocations: 32.07 MB / 5.343 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001264/9.337, allocations: 21.91 kB / 5.343 GB, free: 79.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2035/9.541, allocations: 40.83 MB / 5.382 GB, free: 79.46 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005689/9.546, allocations: 1.109 MB / 5.383 GB, free: 79.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0763/9.623, allocations: 36.87 MB / 5.42 GB, free: 65.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01632/9.639, allocations: 1.379 MB / 5.421 GB, free: 65.05 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004682/9.644, allocations: 0.5978 MB / 5.421 GB, free: 64.55 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (599): * Single equations (assignments): 598 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {68 768} Notification: Performance of prepare postOptimizeDAE: time 0.007849/9.652, allocations: 208.6 kB / 5.422 GB, free: 64.43 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005073/9.657, allocations: 0.5956 MB / 5.422 GB, free: 64.11 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0682/9.725, allocations: 29.29 MB / 5.451 GB, free: 40.79 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001121/9.725, allocations: 124 kB / 5.451 GB, free: 40.67 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.325e-05/9.725, allocations: 0 / 5.451 GB, free: 40.67 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04475/9.77, allocations: 22.4 MB / 5.473 GB, free: 21.88 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3188/10.09, allocations: 44.4 MB / 5.516 GB, free: 78.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.155e-05/10.09, allocations: 2.516 kB / 5.516 GB, free: 78.34 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02046/10.11, allocations: 3.2 MB / 5.519 GB, free: 78.34 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03233/10.14, allocations: 9.518 MB / 5.529 GB, free: 78.14 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003975/10.15, allocations: 0.5123 MB / 5.529 GB, free: 78.14 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03342/10.18, allocations: 43.62 MB / 5.572 GB, free: 49.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.502e-06/10.18, allocations: 0.6562 kB / 5.572 GB, free: 49.16 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08431/10.26, allocations: 38.47 MB / 5.609 GB, free: 48.14 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.09964/10.36, allocations: 53.2 MB / 5.661 GB, free: 23.32 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002288/10.37, allocations: 0.6849 MB / 5.662 GB, free: 22.65 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00462/10.37, allocations: 305 kB / 5.662 GB, free: 22.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01325/10.38, allocations: 1.132 MB / 5.663 GB, free: 21.72 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003126/10.39, allocations: 0.7241 MB / 5.664 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002174/10.39, allocations: 0.5733 MB / 5.665 GB, free: 20.85 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.002365/10.39, allocations: 1.696 MB / 5.666 GB, free: 19.32 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.02809/10.42, allocations: 7.301 MB / 5.673 GB, free: 12.62 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 82 (pipe1.mediums[1].p,pipe1.mediums[1].Xi[1],pipe1.mediums[1].T,pipe1.mediums[2].p,pipe1.mediums[2].Xi[1],pipe1.mediums[2].T,pipe1.mediums[3].p,pipe1.mediums[3].Xi[1],pipe1.mediums[3].T,pipe1.mediums[4].p,pipe1.mediums[4].Xi[1],pipe1.mediums[4].T,pipe1.mediums[5].p,pipe1.mediums[5].Xi[1],pipe1.mediums[5].T,pipe1.flowModel.m_flows[1],pipe1.flowModel.m_flows[2],pipe1.flowModel.m_flows[3],pipe1.flowModel.m_flows[4],pipe1.flowModel.m_flows[5],pipe1.flowModel.m_flows[6],pipe2.mediums[1].p,pipe2.mediums[1].Xi[1],pipe2.mediums[1].T,pipe2.mediums[2].p,pipe2.mediums[2].Xi[1],pipe2.mediums[2].T,pipe2.mediums[3].p,pipe2.mediums[3].Xi[1],pipe2.mediums[3].T,pipe2.mediums[4].p,pipe2.mediums[4].Xi[1],pipe2.mediums[4].T,pipe2.mediums[5].p,pipe2.mediums[5].Xi[1],pipe2.mediums[5].T,pipe2.flowModel.m_flows[1],pipe2.flowModel.m_flows[2],pipe2.flowModel.m_flows[3],pipe2.flowModel.m_flows[4],pipe3.mediums[1].p,pipe3.mediums[1].Xi[1],pipe3.mediums[1].T,pipe3.mediums[2].p,pipe3.mediums[2].Xi[1],pipe3.mediums[2].T,pipe3.mediums[3].p,pipe3.mediums[3].Xi[1],pipe3.mediums[3].T,pipe3.mediums[4].p,pipe3.mediums[4].Xi[1],pipe3.mediums[4].T,pipe3.mediums[5].p,pipe3.mediums[5].Xi[1],pipe3.mediums[5].T,pipe3.flowModel.m_flows[1],pipe3.flowModel.m_flows[2],pipe3.flowModel.m_flows[3],pipe3.flowModel.m_flows[4],pipe3.flowModel.m_flows[5],pipe3.flowModel.m_flows[6],pipe4.mediums[1].p,pipe4.mediums[1].Xi[1],pipe4.mediums[1].T,pipe4.mediums[2].p,pipe4.mediums[2].Xi[1],pipe4.mediums[2].T,pipe4.mediums[3].p,pipe4.mediums[3].Xi[1],pipe4.mediums[3].T,pipe4.mediums[4].p,pipe4.mediums[4].Xi[1],pipe4.mediums[4].T,pipe4.mediums[5].p,pipe4.mediums[5].Xi[1],pipe4.mediums[5].T,pipe4.flowModel.m_flows[1],pipe4.flowModel.m_flows[2],pipe4.flowModel.m_flows[3],pipe4.flowModel.m_flows[4],pipe4.flowModel.m_flows[5],pipe4.flowModel.m_flows[6]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1168): * Single equations (assignments): 1121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 22 * Torn equation systems: 25 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 22 {1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 20 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.01133/10.43, allocations: 4.075 MB / 5.677 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.309/10.74, allocations: 37.84 MB / 5.714 GB, free: 79.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-05/10.74, allocations: 7.812 kB / 5.714 GB, free: 79.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.02981/10.77, allocations: 13.01 MB / 5.727 GB, free: 79.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01583/10.79, allocations: 2.54 MB / 5.729 GB, free: 79.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07849/10.86, allocations: 29.2 MB / 5.758 GB, free: 75.66 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01361/10.88, allocations: 6.685 MB / 5.764 GB, free: 74.66 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/10.88, allocations: 0 / 5.764 GB, free: 74.66 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_BranchingDynamicPipes_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_BranchingDynamicPipes.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.BranchingDynamicPipes.pipe 2>&1)