Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.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.TestWaterPumpVariableSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed",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.001231/0.001231, allocations: 170.6 kB / 8.513 MB, free: 1.848 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.302/1.302, allocations: 221.4 MB / 230.3 MB, free: 7.727 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.0009978/0.0009978, allocations: 99.3 kB / 281.2 MB, free: 5.449 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.1979/0.1979, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2443/0.4423, allocations: 68.04 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.5804, allocations: 61.9 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.259/5.84, allocations: 2.786 GB / 3.28 GB, free: 159 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000228/5.84, allocations: 86.78 kB / 3.281 GB, free: 159 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.309/7.149, allocations: 442.1 MB / 3.712 GB, free: 72.77 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.511e-05/7.149, allocations: 12.84 kB / 3.712 GB, free: 72.77 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002887/7.152, allocations: 354.2 kB / 3.713 GB, free: 72.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001301/7.154, allocations: 0.5728 MB / 3.713 GB, free: 72.49 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.464e-05/7.154, allocations: 25.81 kB / 3.713 GB, free: 72.49 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/7.154, allocations: 32.19 kB / 3.713 GB, free: 72.49 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001008/7.155, allocations: 0.5417 MB / 3.714 GB, free: 72.49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009951/7.156, allocations: 0.659 MB / 3.714 GB, free: 72.3 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.2e-05/7.156, allocations: 5.969 kB / 3.714 GB, free: 72.3 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.572e-05/7.156, allocations: 0 / 3.714 GB, free: 72.3 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-05/7.156, allocations: 29.95 kB / 3.714 GB, free: 72.3 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1519/7.308, allocations: 83.87 MB / 3.796 GB, free: 19.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006632/7.309, allocations: 324.1 kB / 3.797 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003033/7.309, allocations: 167.9 kB / 3.797 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0349/7.344, allocations: 16.65 MB / 3.813 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/7.344, allocations: 39.41 kB / 3.813 GB, free: 24.39 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=37): time 2.395e-06/7.344, allocations: 0 / 3.813 GB, free: 24.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=37): time 0.00255/7.347, allocations: 0.7677 MB / 3.814 GB, free: 24.31 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.055e-05/7.347, allocations: 108.2 kB / 3.814 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005975/7.347, allocations: 437 kB / 3.814 GB, free: 24.07 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/7.347, allocations: 30.86 kB / 3.814 GB, free: 24.04 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/7.347, allocations: 298.8 kB / 3.815 GB, free: 23.83 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001041/7.348, allocations: 124.4 kB / 3.815 GB, free: 23.75 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/7.348, allocations: 0 / 3.815 GB, free: 23.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001198/7.348, allocations: 361.9 kB / 3.815 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/7.348, allocations: 185.6 kB / 3.815 GB, free: 23.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003728/7.348, allocations: 370 kB / 3.816 GB, free: 23.22 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001122/7.35, allocations: 318.9 kB / 3.816 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.309e-06/7.35, allocations: 0 / 3.816 GB, free: 23.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002692/7.352, allocations: 1.072 MB / 3.817 GB, free: 23.13 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006385/7.353, allocations: 2.092 MB / 3.819 GB, free: 20.94 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/7.353, allocations: 3.906 kB / 3.819 GB, free: 20.94 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007258/7.354, allocations: 184.4 kB / 3.819 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005577/7.354, allocations: 154.4 kB / 3.819 GB, free: 20.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001311/7.356, allocations: 0.9059 MB / 3.82 GB, free: 20.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009371/7.356, allocations: 156.2 kB / 3.82 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-05/7.357, allocations: 37.66 kB / 3.821 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.023e-06/7.357, allocations: 3.719 kB / 3.821 GB, free: 20.35 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002406/7.359, allocations: 0.7227 MB / 3.821 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.086e-06/7.359, allocations: 8.375 kB / 3.821 GB, free: 20.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008124/7.36, allocations: 179.6 kB / 3.821 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005512/7.36, allocations: 153 kB / 3.822 GB, free: 20.31 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008126/7.361, allocations: 0.7887 MB / 3.822 GB, free: 19.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007147/7.362, allocations: 118.3 kB / 3.822 GB, free: 19.75 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.018e-05/7.362, allocations: 34.91 kB / 3.822 GB, free: 19.75 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 6 (pump.heatTransfer.states[1].phase,Source.medium.phase,Sink.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 (56): * Single equations (assignments): 55 * 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.0001618/7.362, allocations: 124.2 kB / 3.823 GB, free: 19.64 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007427/7.363, allocations: 270.4 kB / 3.823 GB, free: 19.61 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002312/7.365, allocations: 1.761 MB / 3.825 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.728e-05/7.365, allocations: 17.41 kB / 3.825 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/7.365, allocations: 0 / 3.825 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/7.365, allocations: 8.547 kB / 3.825 GB, free: 19.43 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002952/7.368, allocations: 2.526 MB / 3.827 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/7.368, allocations: 4 kB / 3.827 GB, free: 18.83 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/7.369, allocations: 65.11 kB / 3.827 GB, free: 18.78 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009589/7.37, allocations: 0.6584 MB / 3.828 GB, free: 18.31 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/7.37, allocations: 11.84 kB / 3.828 GB, free: 18.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/7.371, allocations: 1.291 MB / 3.829 GB, free: 17.36 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/7.371, allocations: 7.219 kB / 3.829 GB, free: 17.36 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002111/7.373, allocations: 1.557 MB / 3.831 GB, free: 16.31 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002389/7.375, allocations: 2.006 MB / 3.833 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003454/7.376, allocations: 279.7 kB / 3.833 GB, free: 14.69 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/7.376, allocations: 7.938 kB / 3.833 GB, free: 14.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005894/7.377, allocations: 75.44 kB / 3.833 GB, free: 14.63 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/7.377, allocations: 38.89 kB / 3.833 GB, free: 14.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/7.377, allocations: 22.47 kB / 3.833 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005124/7.377, allocations: 476.1 kB / 3.833 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006858/7.384, allocations: 1.719 MB / 3.835 GB, free: 12.97 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.007806/7.392, allocations: 1.873 MB / 3.837 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001723/7.394, allocations: 1.071 MB / 3.838 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/7.394, allocations: 0 / 3.838 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0006296/7.394, allocations: 0.6022 MB / 3.839 GB, free: 10.62 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/7.396, allocations: 234.8 kB / 3.839 GB, free: 10.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/7.398, allocations: 1.28 MB / 3.84 GB, free: 9.547 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/7.398, allocations: 1.078 MB / 3.841 GB, free: 8.578 MB / 0.5417 GB Notification: Performance of SimCode: time 3.5e-07/7.398, allocations: 4 kB / 3.841 GB, free: 8.574 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpVariableSpeed.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.pipe 2>&1)