Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.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) 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(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 176 kB / 8.474 MB, free: 1.852 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.187/1.187, allocations: 205.2 MB / 214.1 MB, free: 5.156 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000924/0.000924, allocations: 83.33 kB / 262.1 MB, free: 5.211 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1918/0.1927, allocations: 52.95 MB / 315 MB, free: 41.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08135/0.2741, allocations: 47.58 MB / 362.6 MB, free: 9.895 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2509/0.525, allocations: 78.66 MB / 441.3 MB, free: 10.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000221/0.5253, allocations: 76.66 kB / 441.4 MB, free: 10.58 MB / 314.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.01469/0.54, allocations: 5.919 MB / 447.3 MB, free: 9.594 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.5401, allocations: 11.7 kB / 447.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.5402, allocations: 31 kB / 447.3 MB, free: 9.574 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/0.5405, allocations: 257.9 kB / 447.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.5405, allocations: 3.844 kB / 447.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.184e-05/0.5406, allocations: 14.91 kB / 447.6 MB, free: 9.332 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002056/0.5408, allocations: 106.8 kB / 447.7 MB, free: 9.324 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001976/0.541, allocations: 138.7 kB / 447.8 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.541, allocations: 3.938 kB / 447.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.541, allocations: 0 / 447.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.5411, allocations: 3.812 kB / 447.8 MB, free: 9.266 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007027/0.5418, allocations: 0.5318 MB / 448.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001356/0.5419, allocations: 102.9 kB / 448.5 MB, free: 8.879 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.542, allocations: 76.67 kB / 448.5 MB, free: 8.871 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.009e-05/0.542, allocations: 7.297 kB / 448.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001244/0.5422, allocations: 108.1 kB / 448.7 MB, free: 8.805 MB / 314.7 MB Notification: Performance of pre-optimization done (n=20): time 1.442e-06/0.5422, allocations: 0 / 448.7 MB, free: 8.805 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002703/0.5425, allocations: 163.8 kB / 448.8 MB, free: 8.742 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.033e-05/0.5425, allocations: 59.31 kB / 448.9 MB, free: 8.676 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001678/0.5427, allocations: 206.5 kB / 449.1 MB, free: 8.566 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.609e-05/0.5427, allocations: 29.67 kB / 449.1 MB, free: 8.535 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.142e-05/0.5427, allocations: 125.9 kB / 449.2 MB, free: 8.422 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.819e-05/0.5428, allocations: 69.62 kB / 449.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.035e-06/0.5428, allocations: 0 / 449.3 MB, free: 8.367 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.49e-05/0.5429, allocations: 336.3 kB / 449.6 MB, free: 8.047 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.199e-05/0.5429, allocations: 44.25 kB / 449.7 MB, free: 8.047 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.461e-05/0.543, allocations: 83.36 kB / 449.7 MB, free: 8.004 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.12e-05/0.5431, allocations: 61.66 kB / 449.8 MB, free: 7.996 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.5431, allocations: 0 / 449.8 MB, free: 7.996 MB / 314.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002319/0.5434, allocations: 186.5 kB / 450 MB, free: 7.934 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.5434, allocations: 7.75 kB / 450 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.5434, allocations: 0 / 450 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.5434, allocations: 8 kB / 450 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.5436, allocations: 50.75 kB / 450.1 MB, free: 7.914 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.5436, allocations: 7.797 kB / 450.1 MB, free: 7.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001125/0.5438, allocations: 27.33 kB / 450.1 MB, free: 7.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.5438, allocations: 3.906 kB / 450.1 MB, free: 7.895 MB / 314.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 6.394e-05/0.5439, allocations: 110.6 kB / 450.2 MB, free: 7.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.5439, allocations: 23.48 kB / 450.2 MB, free: 7.77 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002826/0.5442, allocations: 186.6 kB / 450.4 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.5442, allocations: 3.875 kB / 450.4 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.5442, allocations: 0 / 450.4 MB, free: 7.711 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.5442, allocations: 3.984 kB / 450.4 MB, free: 7.707 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000194/0.5444, allocations: 251.4 kB / 450.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.5444, allocations: 0 / 450.7 MB, free: 7.512 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.5446, allocations: 42.42 kB / 450.7 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.5447, allocations: 3.844 kB / 450.7 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/0.5447, allocations: 3.5 kB / 450.7 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.5447, allocations: 3.906 kB / 450.7 MB, free: 7.496 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5447, allocations: 4 kB / 450.7 MB, free: 7.492 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003399/0.545, allocations: 272.9 kB / 451 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004473/0.5455, allocations: 0.7185 MB / 451.7 MB, free: 6.914 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.5456, allocations: 103.2 kB / 451.8 MB, free: 6.805 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.927e-05/0.5456, allocations: 7.969 kB / 451.8 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.402e-05/0.5457, allocations: 7.953 kB / 451.8 MB, free: 6.797 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.517e-05/0.5458, allocations: 11.17 kB / 451.8 MB, free: 6.793 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.268e-05/0.5458, allocations: 3.844 kB / 451.8 MB, free: 6.793 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0001153/0.5459, allocations: 176.5 kB / 452 MB, free: 6.703 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008153/0.5467, allocations: 65.25 kB / 452.1 MB, free: 6.691 MB / 314.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.0006274/0.5473, allocations: 318.5 kB / 452.4 MB, free: 6.434 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.5476, allocations: 135.8 kB / 452.5 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.5476, allocations: 0 / 452.5 MB, free: 6.426 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.5477, allocations: 68.62 kB / 452.6 MB, free: 6.422 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002817/0.548, allocations: 49.97 kB / 452.6 MB, free: 6.398 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000705/0.5487, allocations: 412.9 kB / 453 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.5489, allocations: 0.7902 MB / 453.8 MB, free: 5.41 MB / 314.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5489, allocations: 0 / 453.8 MB, free: 5.41 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)