Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor",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.002284/0.002283, allocations: 187.9 kB / 7.802 MB, free: 2.488 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.898/1.898, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009949/0.0009948, allocations: 95.55 kB / 261.4 MB, free: 13.53 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2379/0.2379, allocations: 43.49 MB / 352.8 MB, free: 1.945 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2873/0.5253, allocations: 64.97 MB / 417.8 MB, free: 40.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.9248, allocations: 58.85 MB / 476.7 MB, free: 5.18 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.446/8.371, allocations: 2.797 GB / 3.262 GB, free: 69.29 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/8.371, allocations: 83.12 kB / 3.262 GB, free: 69.21 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 331 * Number of variables: 331 Notification: Performance of Generate backend data structure: time 1.868/10.24, allocations: 457.1 MB / 3.709 GB, free: 12.14 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.712e-05/10.24, allocations: 19.98 kB / 3.709 GB, free: 12.12 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00543/10.25, allocations: 461.6 kB / 3.709 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003958/10.25, allocations: 0.9876 MB / 3.71 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/10.25, allocations: 48 kB / 3.71 GB, free: 10.61 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000259/10.25, allocations: 79.98 kB / 3.71 GB, free: 10.53 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002992/10.25, allocations: 0.9346 MB / 3.711 GB, free: 9.59 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003112/10.26, allocations: 1.216 MB / 3.712 GB, free: 8.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.209e-05/10.26, allocations: 7.938 kB / 3.712 GB, free: 8.262 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001693/10.26, allocations: 4 kB / 3.712 GB, free: 8.258 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.313e-05/10.26, allocations: 50.3 kB / 3.712 GB, free: 8.207 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5456/10.8, allocations: 86.8 MB / 3.797 GB, free: 45.39 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005706/10.8, allocations: 334.2 kB / 3.797 GB, free: 45.37 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003652/10.8, allocations: 254 kB / 3.798 GB, free: 45.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03448/10.84, allocations: 16.65 MB / 3.814 GB, free: 34.46 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.173e-05/10.84, allocations: 42.25 kB / 3.814 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=60): time 3.957e-06/10.84, allocations: 0 / 3.814 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of matching and sorting (n=63): time 0.008033/10.85, allocations: 2.055 MB / 3.816 GB, free: 33.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.189e-05/10.85, allocations: 142 kB / 3.816 GB, free: 33.81 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/10.85, allocations: 0.7493 MB / 3.817 GB, free: 33.66 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.236e-05/10.85, allocations: 25.7 kB / 3.817 GB, free: 33.63 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004863/10.85, allocations: 0.6029 MB / 3.817 GB, free: 33.33 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002328/10.85, allocations: 214 kB / 3.818 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.248e-05/10.85, allocations: 0 / 3.818 GB, free: 33.22 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001425/10.85, allocations: 352 kB / 3.818 GB, free: 32.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000488/10.85, allocations: 271.7 kB / 3.818 GB, free: 32.91 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007295/10.85, allocations: 0.7114 MB / 3.819 GB, free: 32.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001522/10.85, allocations: 486 kB / 3.819 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/10.85, allocations: 7.688 kB / 3.819 GB, free: 32.32 MB / 0.5105 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003877/10.85, allocations: 1.487 MB / 3.821 GB, free: 32.2 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.002718/10.86, allocations: 5.736 MB / 3.826 GB, free: 42.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/10.86, allocations: 14.38 kB / 3.826 GB, free: 42.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009179/10.86, allocations: 202.7 kB / 3.827 GB, free: 42.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/10.86, allocations: 270.2 kB / 3.827 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001653/10.86, allocations: 0.9328 MB / 3.828 GB, free: 41.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001668/10.86, allocations: 116.3 kB / 3.828 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001373/10.86, allocations: 65.69 kB / 3.828 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/10.86, allocations: 10.5 kB / 3.828 GB, free: 41.61 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003819/10.87, allocations: 1.082 MB / 3.829 GB, free: 41.56 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.444e-05/10.87, allocations: 18.81 kB / 3.829 GB, free: 41.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001047/10.87, allocations: 186.8 kB / 3.829 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009727/10.87, allocations: 281.5 kB / 3.83 GB, free: 41.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/10.87, allocations: 0.8191 MB / 3.83 GB, free: 41.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001527/10.87, allocations: 97.52 kB / 3.83 GB, free: 41.01 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/10.87, allocations: 61.7 kB / 3.83 GB, free: 41.01 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (128): * Single equations (assignments): 127 * 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.0005375/10.87, allocations: 150.4 kB / 3.831 GB, free: 40.9 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001411/10.87, allocations: 316.8 kB / 3.831 GB, free: 40.85 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/10.88, allocations: 2.055 MB / 3.833 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/10.88, allocations: 16.88 kB / 3.833 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/10.88, allocations: 0 / 3.833 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/10.88, allocations: 3.703 kB / 3.833 GB, free: 40.66 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005109/10.88, allocations: 3.292 MB / 3.836 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/10.88, allocations: 7.719 kB / 3.836 GB, free: 40.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004509/10.88, allocations: 105.2 kB / 3.836 GB, free: 40.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001243/10.88, allocations: 0.666 MB / 3.837 GB, free: 40.15 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-05/10.88, allocations: 14.3 kB / 3.837 GB, free: 40.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001706/10.89, allocations: 1.285 MB / 3.838 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/10.89, allocations: 10.72 kB / 3.838 GB, free: 39.61 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00423/10.89, allocations: 2.278 MB / 3.84 GB, free: 39.01 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007231/10.9, allocations: 3.127 MB / 3.843 GB, free: 38.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001543/10.9, allocations: 343 kB / 3.844 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003816/10.9, allocations: 9.922 kB / 3.844 GB, free: 37.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001003/10.9, allocations: 63.3 kB / 3.844 GB, free: 37.87 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/10.9, allocations: 53.59 kB / 3.844 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.784e-05/10.9, allocations: 32.36 kB / 3.844 GB, free: 37.86 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001109/10.9, allocations: 0.6856 MB / 3.845 GB, free: 37.75 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01087/10.91, allocations: 1.936 MB / 3.847 GB, free: 37.75 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 3 (motor.inertiaRotor.phi,motor.inertiaRotor.w,motor.la.i) * 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 (53): * Single equations (assignments): 50 * 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.01367/10.93, allocations: 1.969 MB / 3.848 GB, free: 37.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004699/10.93, allocations: 1.557 MB / 3.85 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.58e-05/10.93, allocations: 0 / 3.85 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001068/10.93, allocations: 0.6894 MB / 3.851 GB, free: 37.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/10.94, allocations: 333.9 kB / 3.851 GB, free: 37.46 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005267/10.94, allocations: 2.194 MB / 3.853 GB, free: 36.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001376/10.94, allocations: 1.366 MB / 3.854 GB, free: 36 MB / 0.5261 GB Notification: Performance of SimCode: time 1.964e-06/10.94, allocations: 0 / 3.854 GB, free: 36 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor_fmu --startTime=0 --stopTime=8 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpDCMotor.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDCMotor.pipe 2>&1)