Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1440000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.0009821/0.0009821, allocations: 91.02 kB / 16.31 MB, free: 5.66 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.001087/0.001087, allocations: 179.3 kB / 17.21 MB, free: 5.578 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.72/1.72, allocations: 205.4 MB / 223.4 MB, free: 5.684 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.0004637/0.0004638, allocations: 16 kB / 280.1 MB, free: 13.06 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3004/0.3009, allocations: 47.58 MB / 327.7 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002649/0.3036, allocations: 1.856 MB / 329.6 MB, free: 15.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.3051, allocations: 0.8984 MB / 330.5 MB, free: 15.23 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001205/0.3053, allocations: 11.16 kB / 330.5 MB, free: 15.22 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003656/0.3056, allocations: 80.62 kB / 330.6 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002947/0.3059, allocations: 106.4 kB / 330.7 MB, free: 15.1 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003263/0.3063, allocations: 103.4 kB / 330.8 MB, free: 15.03 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003331/0.3066, allocations: 255 kB / 331 MB, free: 14.88 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.3068, allocations: 76.92 kB / 331.1 MB, free: 14.83 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001598/0.307, allocations: 94.81 kB / 331.2 MB, free: 14.78 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001839/0.3072, allocations: 102.4 kB / 331.3 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.123e-05/0.3072, allocations: 12.92 kB / 331.3 MB, free: 14.72 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.3074, allocations: 34.58 kB / 331.3 MB, free: 14.71 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.18e-05/0.3075, allocations: 41.12 kB / 331.4 MB, free: 14.68 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.123e-05/0.3075, allocations: 65.83 kB / 331.4 MB, free: 14.63 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003091/0.3079, allocations: 224.8 kB / 331.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3079, allocations: 0 / 331.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3079, allocations: 1.031 kB / 331.7 MB, free: 14.48 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.652e-06/0.3079, allocations: 0 / 331.7 MB, free: 14.48 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.0008412/0.3087, allocations: 0.4949 MB / 332.2 MB, free: 14 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3088, allocations: 8.688 kB / 332.2 MB, free: 14 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002339/0.3091, allocations: 31 kB / 332.2 MB, free: 13.99 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.3095, allocations: 250.5 kB / 332.4 MB, free: 13.73 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.433e-05/0.3095, allocations: 19.08 kB / 332.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.793e-05/0.3096, allocations: 15.34 kB / 332.5 MB, free: 13.71 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003687/0.3099, allocations: 160.7 kB / 332.6 MB, free: 13.61 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.008e-05/0.31, allocations: 8.906 kB / 332.6 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.31, allocations: 9.094 kB / 332.6 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.31, allocations: 3.906 kB / 332.6 MB, free: 13.59 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002566/0.3103, allocations: 117.5 kB / 332.8 MB, free: 13.54 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009129/0.3112, allocations: 0.565 MB / 333.3 MB, free: 13.04 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.3115, allocations: 161.6 kB / 333.5 MB, free: 12.96 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001622/0.3117, allocations: 83.36 kB / 333.6 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.977e-05/0.3118, allocations: 3.094 kB / 333.6 MB, free: 12.91 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003084/0.3121, allocations: 126.1 kB / 333.7 MB, free: 12.81 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.943e-06/0.3121, allocations: 0 / 333.7 MB, free: 12.81 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005838/0.3127, allocations: 226.4 kB / 333.9 MB, free: 12.7 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.3127, allocations: 57.52 kB / 334 MB, free: 12.63 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003033/0.313, allocations: 256.8 kB / 334.2 MB, free: 12.46 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.3131, allocations: 26.77 kB / 334.2 MB, free: 12.43 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/0.3132, allocations: 139.2 kB / 334.4 MB, free: 12.3 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.1e-05/0.3133, allocations: 72.66 kB / 334.5 MB, free: 12.23 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.3133, allocations: 4 kB / 334.5 MB, free: 12.23 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3134, allocations: 329.3 kB / 334.8 MB, free: 11.91 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001304/0.3136, allocations: 50.34 kB / 334.8 MB, free: 11.88 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.3137, allocations: 88.41 kB / 334.9 MB, free: 11.82 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000177/0.3139, allocations: 64.2 kB / 335 MB, free: 11.79 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3139, allocations: 1.094 kB / 335 MB, free: 11.79 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003738/0.3143, allocations: 197.9 kB / 335.2 MB, free: 11.68 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.3144, allocations: 8.609 kB / 335.2 MB, free: 11.68 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.3144, allocations: 9.062 kB / 335.2 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3144, allocations: 2.938 kB / 335.2 MB, free: 11.67 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002428/0.3147, allocations: 48.14 kB / 335.2 MB, free: 11.66 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.3147, allocations: 6.047 kB / 335.2 MB, free: 11.65 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.3148, allocations: 20.09 kB / 335.3 MB, free: 11.64 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.969e-05/0.3148, allocations: 7.438 kB / 335.3 MB, free: 11.64 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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001686/0.315, allocations: 144.8 kB / 335.4 MB, free: 11.5 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.963e-05/0.3151, allocations: 30.19 kB / 335.4 MB, free: 11.48 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.565e-05/0.3151, allocations: 32.75 kB / 335.5 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.3152, allocations: 2.156 kB / 335.5 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.3152, allocations: 1.156 kB / 335.5 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.3152, allocations: 0 / 335.5 MB, free: 11.46 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.3155, allocations: 282.2 kB / 335.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3155, allocations: 0 / 335.8 MB, free: 11.18 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.3157, allocations: 40.66 kB / 335.8 MB, free: 11.16 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.3157, allocations: 4 kB / 335.8 MB, free: 11.15 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.3157, allocations: 7.953 kB / 335.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.3157, allocations: 0 / 335.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3158, allocations: 7.938 kB / 335.8 MB, free: 11.14 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004906/0.3163, allocations: 272.7 kB / 336.1 MB, free: 10.85 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.207e-05/0.3164, allocations: 108.8 kB / 336.2 MB, free: 10.73 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.757e-05/0.3164, allocations: 4 kB / 336.2 MB, free: 10.72 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.115e-05/0.3165, allocations: 7.953 kB / 336.2 MB, free: 10.71 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.218e-05/0.3165, allocations: 19.97 kB / 336.2 MB, free: 10.7 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.3166, allocations: 8.062 kB / 336.2 MB, free: 10.69 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001909/0.3168, allocations: 184.5 kB / 336.4 MB, free: 10.51 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3168, allocations: 0 / 336.4 MB, free: 10.51 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002957/0.3171, allocations: 63.89 kB / 336.5 MB, free: 10.45 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 (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.001056/0.3181, allocations: 421.1 kB / 336.9 MB, free: 10.03 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003128/0.3185, allocations: 131.9 kB / 337 MB, free: 9.902 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3185, allocations: 8.188 kB / 337 MB, free: 9.895 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001387/0.3186, allocations: 75.86 kB / 337.1 MB, free: 9.82 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003449/0.319, allocations: 40.64 kB / 337.1 MB, free: 9.781 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001101/0.3201, allocations: 0.6404 MB / 337.8 MB, free: 9.117 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000391/0.3205, allocations: 0.7443 MB / 338.5 MB, free: 8.348 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.3206, allocations: 29.94 kB / 338.5 MB, free: 8.32 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.203e-05/0.3207, allocations: 23.44 kB / 338.6 MB, free: 8.297 MB / 270.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3207, allocations: 0 / 338.6 MB, free: 8.297 MB / 270.1 MB Notification: Performance of Templates: time 0.006423/0.3271, allocations: 2.451 MB / 341 MB, free: 5.844 MB / 270.1 MB make -j1 -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1)