Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.TestComponents.Machines.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV",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.0009252/0.0009252, allocations: 181.9 kB / 8.52 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 221.4 MB / 230.3 MB, free: 7.707 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009367/0.0009368, allocations: 89.8 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.165/0.165, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2244/0.3894, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.4925, allocations: 61.91 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.949/5.442, allocations: 2.787 GB / 3.281 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000173/5.442, allocations: 86.44 kB / 3.281 GB, free: 154.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 1.351/6.793, allocations: 443 MB / 3.714 GB, free: 64.07 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/6.793, allocations: 20.28 kB / 3.714 GB, free: 64.06 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002939/6.796, allocations: 350 kB / 3.714 GB, free: 64.02 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/6.798, allocations: 0.5775 MB / 3.715 GB, free: 63.76 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.155e-05/6.798, allocations: 25.34 kB / 3.715 GB, free: 63.76 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/6.798, allocations: 32.97 kB / 3.715 GB, free: 63.76 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001064/6.799, allocations: 0.5665 MB / 3.715 GB, free: 63.75 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/6.8, allocations: 0.691 MB / 3.716 GB, free: 63.55 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.227e-05/6.8, allocations: 7.375 kB / 3.716 GB, free: 63.55 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.598e-05/6.8, allocations: 0 / 3.716 GB, free: 63.55 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.064e-05/6.8, allocations: 20.88 kB / 3.716 GB, free: 63.55 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08196/6.882, allocations: 44.4 MB / 3.759 GB, free: 35.95 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008822/6.883, allocations: 403.3 kB / 3.76 GB, free: 35.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/6.883, allocations: 204.2 kB / 3.76 GB, free: 35.91 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04503/6.928, allocations: 24.1 MB / 3.783 GB, free: 20.26 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/6.928, allocations: 38.12 kB / 3.783 GB, free: 20.22 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=43): time 2.305e-06/6.928, allocations: 0 / 3.783 GB, free: 20.22 MB / 0.5105 GB Notification: Performance of matching and sorting (n=43): time 0.003158/6.932, allocations: 0.856 MB / 3.784 GB, free: 20.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/6.932, allocations: 109.8 kB / 3.784 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000673/6.932, allocations: 426.1 kB / 3.785 GB, free: 19.89 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.208e-05/6.932, allocations: 29.55 kB / 3.785 GB, free: 19.86 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/6.933, allocations: 293.2 kB / 3.785 GB, free: 19.66 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/6.933, allocations: 147.5 kB / 3.785 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-05/6.933, allocations: 0 / 3.785 GB, free: 19.57 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.655e-05/6.933, allocations: 360.5 kB / 3.786 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003524/6.933, allocations: 207.7 kB / 3.786 GB, free: 19.26 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004796/6.934, allocations: 388.5 kB / 3.786 GB, free: 19.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/6.935, allocations: 358.2 kB / 3.787 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/6.935, allocations: 2.312 kB / 3.787 GB, free: 19.04 MB / 0.5105 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003256/6.938, allocations: 1.103 MB / 3.788 GB, free: 18.95 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000384/6.939, allocations: 2.012 MB / 3.79 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/6.939, allocations: 5.188 kB / 3.79 GB, free: 16.85 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/6.94, allocations: 284.3 kB / 3.79 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006214/6.941, allocations: 153.1 kB / 3.79 GB, free: 16.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001884/6.943, allocations: 0.9649 MB / 3.791 GB, free: 32.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001055/6.944, allocations: 133.8 kB / 3.791 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/6.944, allocations: 41.95 kB / 3.791 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/6.944, allocations: 3.375 kB / 3.791 GB, free: 32.26 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002988/6.947, allocations: 0.7808 MB / 3.792 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/6.947, allocations: 5.312 kB / 3.792 GB, free: 32.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009256/6.948, allocations: 179.7 kB / 3.792 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006547/6.949, allocations: 163.6 kB / 3.792 GB, free: 32.21 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/6.95, allocations: 0.7934 MB / 3.793 GB, free: 31.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008992/6.951, allocations: 116.1 kB / 3.793 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-05/6.951, allocations: 32.12 kB / 3.793 GB, free: 31.65 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 6 (Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * 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 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002602/6.951, allocations: 127.4 kB / 3.793 GB, free: 31.54 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000865/6.952, allocations: 272.4 kB / 3.793 GB, free: 31.51 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004163/6.956, allocations: 2.53 MB / 3.796 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/6.956, allocations: 27.25 kB / 3.796 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/6.956, allocations: 0 / 3.796 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/6.956, allocations: 2.625 kB / 3.796 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005548/6.962, allocations: 3.286 MB / 3.799 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.466e-06/6.962, allocations: 9.375 kB / 3.799 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/6.962, allocations: 64.66 kB / 3.799 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/6.964, allocations: 0.7644 MB / 3.8 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.575e-05/6.964, allocations: 16.59 kB / 3.8 GB, free: 30.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001891/6.966, allocations: 1.326 MB / 3.801 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.539e-06/6.966, allocations: 5.25 kB / 3.801 GB, free: 30.27 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003719/6.97, allocations: 2.079 MB / 3.803 GB, free: 29.95 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004122/6.974, allocations: 2.542 MB / 3.806 GB, free: 29.26 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005559/6.974, allocations: 270.9 kB / 3.806 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002172/6.975, allocations: 4.969 kB / 3.806 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008527/6.975, allocations: 75.11 kB / 3.806 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001421/6.976, allocations: 42.2 kB / 3.806 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-05/6.976, allocations: 26.7 kB / 3.806 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0007514/6.976, allocations: 390.1 kB / 3.807 GB, free: 29 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.009206/6.986, allocations: 1.708 MB / 3.808 GB, free: 28.76 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse8.phase,$cse8.region,$cse10.phase,$cse10.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/6.996, allocations: 1.879 MB / 3.81 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002873/6.999, allocations: 1.409 MB / 3.811 GB, free: 27.78 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/6.999, allocations: 4.312 kB / 3.811 GB, free: 27.77 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001074/7, allocations: 0.9153 MB / 3.812 GB, free: 27.36 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/7.002, allocations: 260 kB / 3.813 GB, free: 27.22 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002835/7.005, allocations: 1.591 MB / 3.814 GB, free: 26.11 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006622/7.005, allocations: 1.131 MB / 3.815 GB, free: 25.11 MB / 0.5261 GB Notification: Performance of SimCode: time 8.11e-07/7.005, allocations: 0 / 3.815 GB, free: 25.11 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefaultCV.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.pipe 2>&1)