Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState",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 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 192.5 kB / 8.528 MB, free: 2.633 MB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.231/1.231, allocations: 221.4 MB / 230.3 MB, free: 7.684 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009837/0.0009836, allocations: 99.53 kB / 281.2 MB, free: 5.168 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2855/0.2855, allocations: 44.14 MB / 376.1 MB, free: 45 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1167/0.4023, allocations: 68.03 MB / 444.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.5118, allocations: 61.91 MB / 0.4942 GB, free: 1.152 MB / 382.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.676/6.188, allocations: 3.461 GB / 3.955 GB, free: 165 MB / 0.5137 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/6.188, allocations: 76.67 kB / 3.955 GB, free: 165 MB / 0.5137 GB 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.511/9.699, allocations: 0.9656 GB / 4.921 GB, free: 34.94 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/9.699, allocations: 11.62 kB / 4.921 GB, free: 34.93 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009142/9.708, allocations: 0.8729 MB / 4.922 GB, free: 34.54 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02324/9.731, allocations: 5.762 MB / 4.927 GB, free: 32.79 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009659/9.732, allocations: 243.1 kB / 4.928 GB, free: 32.79 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006013/9.738, allocations: 417.1 kB / 4.928 GB, free: 32.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03683/9.775, allocations: 15.77 MB / 4.944 GB, free: 20.64 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04267/9.818, allocations: 13.19 MB / 4.956 GB, free: 8.059 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006298/9.819, allocations: 19.91 kB / 4.956 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005323/9.824, allocations: 8 kB / 4.956 GB, free: 8.031 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006633/9.825, allocations: 0.7487 MB / 4.957 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4483/10.27, allocations: 47.05 MB / 5.003 GB, free: 82.24 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01405/10.29, allocations: 7.622 MB / 5.011 GB, free: 82.21 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01273/10.3, allocations: 7.324 MB / 5.018 GB, free: 82.15 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003539/10.3, allocations: 4.138 MB / 5.022 GB, free: 77.83 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001331/10.3, allocations: 148.6 kB / 5.022 GB, free: 77.79 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=881): time 1.082e-05/10.3, allocations: 0 / 5.022 GB, free: 77.79 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1121): time 0.3157/10.62, allocations: 80.35 MB / 5.1 GB, free: 75.51 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/10.62, allocations: 166.8 kB / 5.101 GB, free: 75.44 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/10.63, allocations: 2.351 MB / 5.103 GB, free: 75.21 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.005069/10.63, allocations: 29.45 kB / 5.103 GB, free: 75.18 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001942/10.63, allocations: 2.02 MB / 5.105 GB, free: 74.3 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.00795/10.64, allocations: 3.744 MB / 5.108 GB, free: 71.93 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004044/10.64, allocations: 7.656 kB / 5.108 GB, free: 71.93 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.001167/10.65, allocations: 0.7422 MB / 5.109 GB, free: 71.61 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01875/10.66, allocations: 9.204 MB / 5.118 GB, free: 70.04 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02206/10.69, allocations: 10.53 MB / 5.128 GB, free: 65.64 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03016/10.72, allocations: 11.97 MB / 5.14 GB, free: 62.15 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001231/10.72, allocations: 11.56 kB / 5.14 GB, free: 62.15 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1368) (initialization): time 0.07716/10.79, allocations: 31.01 MB / 5.17 GB, free: 40.68 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.002146/10.8, allocations: 11.27 MB / 5.181 GB, free: 28.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/10.8, allocations: 28 kB / 5.181 GB, free: 28.72 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1979/10.99, allocations: 39.82 MB / 5.22 GB, free: 0.6055 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007811/11, allocations: 1.133 MB / 5.221 GB, free: 0 / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4283/11.43, allocations: 37.48 MB / 5.258 GB, free: 84.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01829/11.45, allocations: 1.366 MB / 5.259 GB, free: 84.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005703/11.45, allocations: 0.5746 MB / 5.26 GB, free: 84.35 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/11.45, allocations: 3.5 kB / 5.26 GB, free: 84.35 MB / 0.5762 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07874/11.53, allocations: 28.5 MB / 5.288 GB, free: 84.06 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002199/11.53, allocations: 26.97 kB / 5.288 GB, free: 84.06 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2009/11.73, allocations: 38.35 MB / 5.325 GB, free: 83.75 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007104/11.74, allocations: 1.142 MB / 5.326 GB, free: 83.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09445/11.84, allocations: 33.29 MB / 5.359 GB, free: 76.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01844/11.86, allocations: 1.347 MB / 5.36 GB, free: 76.52 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005571/11.86, allocations: 0.5646 MB / 5.361 GB, free: 76.43 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 123 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (583): * Single equations (assignments): 582 * 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 {67 719} Notification: Performance of prepare postOptimizeDAE: time 0.009353/11.87, allocations: 213.5 kB / 5.361 GB, free: 76.32 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006586/11.88, allocations: 0.58 MB / 5.362 GB, free: 76.32 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09392/11.97, allocations: 32.43 MB / 5.393 GB, free: 58.88 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002247/11.97, allocations: 116 kB / 5.393 GB, free: 58.77 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.016e-05/11.97, allocations: 3.188 kB / 5.393 GB, free: 58.77 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.06088/12.03, allocations: 21.83 MB / 5.415 GB, free: 40.47 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4852/12.52, allocations: 42.69 MB / 5.456 GB, free: 78.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000114/12.52, allocations: 7.344 kB / 5.456 GB, free: 78.82 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01412/12.53, allocations: 2.076 MB / 5.458 GB, free: 78.82 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03669/12.57, allocations: 10.55 MB / 5.469 GB, free: 78.61 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004545/12.57, allocations: 496.4 kB / 5.469 GB, free: 78.61 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02928/12.6, allocations: 31.64 MB / 5.5 GB, free: 61.39 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/12.6, allocations: 0 / 5.5 GB, free: 61.39 MB / 0.5762 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08783/12.69, allocations: 36.14 MB / 5.535 GB, free: 60.34 MB / 0.5762 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1165/12.81, allocations: 50.17 MB / 5.584 GB, free: 54.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003612/12.81, allocations: 0.6794 MB / 5.585 GB, free: 54.04 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006739/12.82, allocations: 293.1 kB / 5.585 GB, free: 53.96 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01681/12.83, allocations: 1.118 MB / 5.586 GB, free: 53.94 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005922/12.84, allocations: 0.6853 MB / 5.587 GB, free: 53.85 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004666/12.84, allocations: 0.5287 MB / 5.588 GB, free: 53.76 MB / 0.5762 GB Notification: Performance of sort global known variables: time 0.003699/12.85, allocations: 1.745 MB / 5.589 GB, free: 53.05 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.03766/12.89, allocations: 7.019 MB / 5.596 GB, free: 52.06 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 60 (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,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,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,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) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1056): * Single equations (assignments): 1029 * 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: 27 * Mixed (continuous/discrete) equation systems: 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: 22 {2 6,2 6,2 6,2 6,2 6,2 6,2 6,2 22,2 6,2 6,2 6,2 6,2 6,2 6,2 22,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.01895/12.9, allocations: 3.77 MB / 5.6 GB, free: 51.79 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.07786/12.98, allocations: 33.89 MB / 5.633 GB, free: 37.35 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/12.98, allocations: 4.781 kB / 5.633 GB, free: 37.35 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.02536/13.01, allocations: 11.41 MB / 5.644 GB, free: 27.54 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01991/13.03, allocations: 2.544 MB / 5.647 GB, free: 25.89 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07396/13.1, allocations: 26.95 MB / 5.673 GB, free: 5.281 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01193/13.11, allocations: 6.399 MB / 5.679 GB, free: 376 kB / 0.5762 GB Notification: Performance of SimCode: time 1.132e-06/13.11, allocations: 0 / 5.679 GB, free: 376 kB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestExamplesVariants_BranchingDynamicPipes_MomentumSteadyState.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestExamplesVariants.BranchingDynamicPipes_MomentumSteadyState.pipe 2>&1)