Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.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) 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(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",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.0009316/0.0009317, allocations: 181.6 kB / 8.132 MB, free: 2.219 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.055/1.055, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0008998/0.0008998, allocations: 102.3 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08554/0.08646, allocations: 55.81 MB / 336.6 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.252, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07645/0.3285, allocations: 79.94 MB / 466.9 MB, free: 6.852 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.3287, allocations: 76.95 kB / 467 MB, free: 6.777 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.01531/0.344, allocations: 5.991 MB / 473 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.045e-05/0.3441, allocations: 8 kB / 473 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.3442, allocations: 35.83 kB / 473 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.3446, allocations: 261.8 kB / 473.3 MB, free: 456 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3446, allocations: 4 kB / 473.3 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.235e-05/0.3446, allocations: 12 kB / 473.3 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002309/0.3449, allocations: 109 kB / 473.4 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002166/0.3451, allocations: 138 kB / 473.6 MB, free: 188 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3451, allocations: 7.906 kB / 473.6 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.3451, allocations: 0 / 473.6 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.3452, allocations: 4 kB / 473.6 MB, free: 176 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008177/0.346, allocations: 0.5319 MB / 474.1 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/0.3461, allocations: 101.7 kB / 474.2 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.3463, allocations: 79.59 kB / 474.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.509e-05/0.3463, allocations: 0 / 474.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.3464, allocations: 112.8 kB / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.322e-06/0.3464, allocations: 0 / 474.4 MB, free: 15.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002956/0.3467, allocations: 163.6 kB / 474.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.3468, allocations: 55.41 kB / 474.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/0.347, allocations: 210.1 kB / 474.8 MB, free: 14.85 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.347, allocations: 25.7 kB / 474.8 MB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.478e-05/0.3471, allocations: 128.2 kB / 475 MB, free: 14.69 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.08e-05/0.3471, allocations: 71 kB / 475 MB, free: 14.62 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.985e-06/0.3472, allocations: 4 kB / 475 MB, free: 14.62 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3473, allocations: 326.8 kB / 475.4 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.946e-05/0.3474, allocations: 47.98 kB / 475.4 MB, free: 14.24 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.3475, allocations: 83.55 kB / 475.5 MB, free: 14.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.657e-05/0.3476, allocations: 52.92 kB / 475.5 MB, free: 14.1 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3476, allocations: 4 kB / 475.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002791/0.3479, allocations: 193.4 kB / 475.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.969e-06/0.3479, allocations: 4 kB / 475.7 MB, free: 13.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.3479, allocations: 4 kB / 475.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.3479, allocations: 7.875 kB / 475.7 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.3481, allocations: 39.98 kB / 475.8 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3481, allocations: 4 kB / 475.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.3483, allocations: 27.83 kB / 475.8 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.3483, allocations: 4 kB / 475.8 MB, free: 13.81 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.604e-05/0.3484, allocations: 116.2 kB / 475.9 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.3484, allocations: 20.38 kB / 475.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003127/0.3487, allocations: 188.8 kB / 476.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.3487, allocations: 0 / 476.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.3488, allocations: 4 kB / 476.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.3488, allocations: 1.062 kB / 476.1 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002351/0.349, allocations: 250 kB / 476.4 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.349, allocations: 4 kB / 476.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001971/0.3492, allocations: 44.91 kB / 476.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3492, allocations: 0 / 476.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.3492, allocations: 0 / 476.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.3493, allocations: 4 kB / 476.4 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.3493, allocations: 4.469 kB / 476.4 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004061/0.3497, allocations: 272 kB / 476.7 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005798/0.3503, allocations: 0.7163 MB / 477.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.978e-05/0.3503, allocations: 108.8 kB / 477.5 MB, free: 12.01 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/0.3504, allocations: 4.938 kB / 477.5 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.683e-05/0.3505, allocations: 7.984 kB / 477.5 MB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.844e-05/0.3505, allocations: 11.92 kB / 477.5 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.3506, allocations: 8 kB / 477.6 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.000144/0.3507, allocations: 180.3 kB / 477.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008037/0.3515, allocations: 63.84 kB / 477.8 MB, free: 11.74 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005688/0.3521, allocations: 314.4 kB / 478.1 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002257/0.3523, allocations: 131.9 kB / 478.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.3523, allocations: 0 / 478.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001047/0.3525, allocations: 76.11 kB / 478.3 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.3527, allocations: 47.75 kB / 478.4 MB, free: 11.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007898/0.3535, allocations: 425.6 kB / 478.8 MB, free: 10.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003631/0.3539, allocations: 0.7823 MB / 479.6 MB, free: 10.01 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3539, allocations: 0 / 479.6 MB, free: 10.01 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)