Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.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.TestWaterPumpDefault,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault",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.0009653/0.0009654, allocations: 183.5 kB / 8.52 MB, free: 1.742 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.248/1.248, allocations: 221.4 MB / 230.3 MB, free: 7.664 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.0009898/0.00099, allocations: 86.25 kB / 281.2 MB, free: 5.469 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.1758/0.1758, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2204/0.3963, allocations: 68.02 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.5057, allocations: 61.92 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.797/5.302, allocations: 2.786 GB / 3.281 GB, free: 4.98 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/5.303, allocations: 83.78 kB / 3.281 GB, free: 4.902 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.56/6.863, allocations: 441.9 MB / 3.712 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/6.863, allocations: 16.83 kB / 3.712 GB, free: 68.77 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002657/6.866, allocations: 354.2 kB / 3.712 GB, free: 68.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001121/6.867, allocations: 0.5606 MB / 3.713 GB, free: 68.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.363e-05/6.867, allocations: 25.5 kB / 3.713 GB, free: 68.49 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.019e-05/6.867, allocations: 33.25 kB / 3.713 GB, free: 68.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008988/6.868, allocations: 0.5386 MB / 3.714 GB, free: 68.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009775/6.869, allocations: 0.6676 MB / 3.714 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/6.869, allocations: 0 / 3.714 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.961e-05/6.869, allocations: 3.875 kB / 3.714 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.82e-05/6.869, allocations: 23.47 kB / 3.714 GB, free: 68.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08106/6.95, allocations: 44.4 MB / 3.758 GB, free: 41.02 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/6.951, allocations: 296.3 kB / 3.758 GB, free: 41 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/6.951, allocations: 198.7 kB / 3.758 GB, free: 40.99 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04296/6.994, allocations: 24.09 MB / 3.782 GB, free: 25.39 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/6.994, allocations: 34.83 kB / 3.782 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=39): time 3.656e-06/6.994, allocations: 0 / 3.782 GB, free: 25.35 MB / 0.5261 GB Notification: Performance of matching and sorting (n=39): time 0.002565/6.997, allocations: 0.8058 MB / 3.782 GB, free: 25.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/6.997, allocations: 110.7 kB / 3.783 GB, free: 25.15 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004985/6.997, allocations: 409.5 kB / 3.783 GB, free: 25.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.721e-05/6.997, allocations: 25.7 kB / 3.783 GB, free: 24.99 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001272/6.997, allocations: 295 kB / 3.783 GB, free: 24.83 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 9.906e-05/6.998, allocations: 132.4 kB / 3.783 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/6.998, allocations: 0 / 3.783 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.049e-05/6.998, allocations: 357.5 kB / 3.784 GB, free: 24.44 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/6.998, allocations: 190 kB / 3.784 GB, free: 24.44 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003178/6.998, allocations: 365.2 kB / 3.784 GB, free: 24.23 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/6.999, allocations: 328.7 kB / 3.785 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/6.999, allocations: 2.188 kB / 3.785 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002571/7.002, allocations: 1.03 MB / 3.786 GB, free: 24.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003527/7.002, allocations: 2.008 MB / 3.788 GB, free: 22.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/7.002, allocations: 7 kB / 3.788 GB, free: 22.04 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007383/7.003, allocations: 186.6 kB / 3.788 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004853/7.004, allocations: 135.6 kB / 3.788 GB, free: 22.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001472/7.005, allocations: 0.8932 MB / 3.789 GB, free: 21.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008181/7.006, allocations: 134.5 kB / 3.789 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.998e-05/7.006, allocations: 33.19 kB / 3.789 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.803e-06/7.006, allocations: 6.406 kB / 3.789 GB, free: 21.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002344/7.008, allocations: 0.7323 MB / 3.79 GB, free: 21.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/7.008, allocations: 7.781 kB / 3.79 GB, free: 21.42 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007929/7.009, allocations: 173 kB / 3.79 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004686/7.01, allocations: 147.1 kB / 3.79 GB, free: 21.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009747/7.011, allocations: 0.7873 MB / 3.791 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006348/7.011, allocations: 106.6 kB / 3.791 GB, free: 20.85 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/7.011, allocations: 31.86 kB / 3.791 GB, free: 20.85 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 (55): * Single equations (assignments): 54 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001338/7.011, allocations: 130.4 kB / 3.791 GB, free: 20.73 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007026/7.012, allocations: 263.5 kB / 3.791 GB, free: 20.71 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/7.015, allocations: 2.465 MB / 3.794 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/7.015, allocations: 26.94 kB / 3.794 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/7.015, allocations: 0 / 3.794 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/7.015, allocations: 0 / 3.794 GB, free: 20.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002796/7.018, allocations: 3.132 MB / 3.797 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.758e-06/7.018, allocations: 3.375 kB / 3.797 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/7.018, allocations: 67.8 kB / 3.797 GB, free: 20.11 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009494/7.019, allocations: 0.6918 MB / 3.797 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.135e-05/7.019, allocations: 12.91 kB / 3.797 GB, free: 20.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001164/7.02, allocations: 1.261 MB / 3.799 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/7.02, allocations: 5.406 kB / 3.799 GB, free: 19.51 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002304/7.023, allocations: 1.952 MB / 3.801 GB, free: 19.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002558/7.025, allocations: 2.41 MB / 3.803 GB, free: 18.51 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002907/7.025, allocations: 270.9 kB / 3.803 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/7.026, allocations: 0 / 3.803 GB, free: 18.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005384/7.026, allocations: 59.27 kB / 3.803 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.423e-05/7.026, allocations: 46.52 kB / 3.803 GB, free: 18.35 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.035e-05/7.026, allocations: 25.36 kB / 3.803 GB, free: 18.34 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003391/7.027, allocations: 381.4 kB / 3.804 GB, free: 18.25 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006553/7.033, allocations: 1.696 MB / 3.805 GB, free: 18.02 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,$cse12.phase,$cse12.region,$cse13.phase,$cse13.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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.007959/7.041, allocations: 1.872 MB / 3.807 GB, free: 17.61 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002339/7.043, allocations: 1.329 MB / 3.808 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/7.043, allocations: 3.938 kB / 3.808 GB, free: 17.59 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007727/7.044, allocations: 0.9009 MB / 3.809 GB, free: 17.58 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/7.046, allocations: 260.4 kB / 3.81 GB, free: 17.56 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/7.048, allocations: 1.559 MB / 3.811 GB, free: 17.22 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006575/7.049, allocations: 1.119 MB / 3.812 GB, free: 32.5 MB / 0.5417 GB Notification: Performance of SimCode: time 4e-07/7.049, allocations: 0 / 3.812 GB, free: 32.5 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDefault.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.pipe 2>&1)