Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 189.7 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001151, allocations: 51.92 kB / 278.2 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3001, allocations: 46.63 MB / 324.8 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003653/0.3038, allocations: 2.28 MB / 327.1 MB, free: 152 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.3057, allocations: 0.9468 MB / 328.1 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001325/0.3059, allocations: 3.781 kB / 328.1 MB, free: 15.4 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.3064, allocations: 93.39 kB / 328.2 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000348/0.3067, allocations: 107.5 kB / 328.3 MB, free: 15.27 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003553/0.3071, allocations: 111.8 kB / 328.4 MB, free: 15.19 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004011/0.3075, allocations: 283.1 kB / 328.7 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002384/0.3078, allocations: 84.28 kB / 328.7 MB, free: 14.98 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001939/0.308, allocations: 110.7 kB / 328.8 MB, free: 14.92 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.3082, allocations: 132.2 kB / 329 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.41e-05/0.3083, allocations: 17.47 kB / 329 MB, free: 14.84 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001644/0.3084, allocations: 48.83 kB / 329 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.3086, allocations: 65.84 kB / 329.1 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001594/0.3087, allocations: 117.7 kB / 329.2 MB, free: 14.7 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.3091, allocations: 280 kB / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.3091, allocations: 0 / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3092, allocations: 0 / 329.5 MB, free: 14.51 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3092, allocations: 1.031 kB / 329.5 MB, free: 14.51 MB / 270.1 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.0008916/0.3101, allocations: 0.5377 MB / 330 MB, free: 14.01 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.543e-05/0.3101, allocations: 9.188 kB / 330 MB, free: 14.01 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000166/0.3103, allocations: 27.28 kB / 330.1 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.3106, allocations: 260.2 kB / 330.3 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.3106, allocations: 18.59 kB / 330.3 MB, free: 13.72 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.3107, allocations: 19.41 kB / 330.4 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.3111, allocations: 166.5 kB / 330.5 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3111, allocations: 0 / 330.5 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.3111, allocations: 13.92 kB / 330.5 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.3111, allocations: 12.3 kB / 330.5 MB, free: 13.58 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002535/0.3114, allocations: 109.7 kB / 330.6 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.3123, allocations: 0.5639 MB / 331.2 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.3126, allocations: 157.8 kB / 331.4 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.3128, allocations: 93.39 kB / 331.5 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.763e-05/0.3129, allocations: 2.344 kB / 331.5 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.3132, allocations: 127.7 kB / 331.6 MB, free: 12.81 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.3132, allocations: 0 / 331.6 MB, free: 12.81 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005715/0.3138, allocations: 234.3 kB / 331.8 MB, free: 12.68 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.946e-05/0.3139, allocations: 53.59 kB / 331.9 MB, free: 12.62 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003038/0.3142, allocations: 250.7 kB / 332.1 MB, free: 12.45 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.3142, allocations: 30.8 kB / 332.1 MB, free: 12.42 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001162/0.3143, allocations: 140 kB / 332.3 MB, free: 12.29 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.3144, allocations: 67.03 kB / 332.3 MB, free: 12.23 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.613e-05/0.3145, allocations: 44.72 kB / 332.4 MB, free: 12.2 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.3146, allocations: 336.3 kB / 332.7 MB, free: 11.86 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001115/0.3148, allocations: 52.34 kB / 332.8 MB, free: 11.84 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.3149, allocations: 84.41 kB / 332.8 MB, free: 11.78 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.3152, allocations: 148.7 kB / 333 MB, free: 11.68 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3152, allocations: 0 / 333 MB, free: 11.68 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003341/0.3155, allocations: 203.6 kB / 333.2 MB, free: 11.49 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.3155, allocations: 4 kB / 333.2 MB, free: 11.49 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3156, allocations: 4 kB / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.3156, allocations: 0 / 333.2 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002096/0.3158, allocations: 48.02 kB / 333.2 MB, free: 11.44 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.161e-05/0.3158, allocations: 15.88 kB / 333.3 MB, free: 11.42 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001365/0.316, allocations: 23.83 kB / 333.3 MB, free: 11.4 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.316, allocations: 4 kB / 333.3 MB, free: 11.39 MB / 270.1 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 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001501/0.3161, allocations: 149.7 kB / 333.4 MB, free: 11.24 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.771e-05/0.3162, allocations: 23.72 kB / 333.5 MB, free: 11.21 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.864e-05/0.3163, allocations: 30.17 kB / 333.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.3163, allocations: 0 / 333.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.3163, allocations: 7.938 kB / 333.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.209e-06/0.3163, allocations: 0 / 333.5 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002826/0.3166, allocations: 289.4 kB / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.3166, allocations: 0 / 333.8 MB, free: 10.84 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.3168, allocations: 31.98 kB / 333.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3168, allocations: 0 / 333.8 MB, free: 10.81 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.3168, allocations: 11.98 kB / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.694e-06/0.3168, allocations: 0 / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3168, allocations: 3.938 kB / 333.8 MB, free: 10.8 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004859/0.3173, allocations: 280.9 kB / 334.1 MB, free: 10.5 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-05/0.3174, allocations: 108.8 kB / 334.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.668e-05/0.3175, allocations: 3.984 kB / 334.2 MB, free: 10.38 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.3176, allocations: 11.94 kB / 334.2 MB, free: 10.36 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.3176, allocations: 11.98 kB / 334.2 MB, free: 10.35 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.3177, allocations: 8 kB / 334.2 MB, free: 10.34 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.3178, allocations: 188.5 kB / 334.4 MB, free: 10.16 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3179, allocations: 4.062 kB / 334.4 MB, free: 10.16 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.000278/0.3181, allocations: 55.84 kB / 334.5 MB, free: 10.1 MB / 270.1 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.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009614/0.3191, allocations: 417.9 kB / 334.9 MB, free: 9.691 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003234/0.3194, allocations: 151.8 kB / 335 MB, free: 9.543 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.3194, allocations: 0 / 335 MB, free: 9.543 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001318/0.3196, allocations: 75.86 kB / 335.1 MB, free: 9.469 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003774/0.32, allocations: 60.75 kB / 335.2 MB, free: 9.41 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/0.3211, allocations: 0.6132 MB / 335.8 MB, free: 8.77 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003977/0.3215, allocations: 0.7479 MB / 336.5 MB, free: 7.996 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.3216, allocations: 25.95 kB / 336.6 MB, free: 7.973 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.27e-05/0.3217, allocations: 27.42 kB / 336.6 MB, free: 7.945 MB / 270.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3217, allocations: 0 / 336.6 MB, free: 7.945 MB / 270.1 MB Notification: Performance of Templates: time 0.006479/0.3282, allocations: 2.638 MB / 339.2 MB, free: 5.305 MB / 270.1 MB make -j1 -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)