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.001071/0.001071, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.00105/0.00105, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.485/1.485, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.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.001227/0.001228, allocations: 51.92 kB / 279.3 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1079, allocations: 46.62 MB / 325.9 MB, free: 4.898 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003622/0.1116, allocations: 2.273 MB / 328.2 MB, free: 2.602 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.1131, allocations: 0.9558 MB / 329.2 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.806e-05/0.1132, allocations: 7.938 kB / 329.2 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003166/0.1135, allocations: 83.7 kB / 329.3 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002351/0.1137, allocations: 99.47 kB / 329.4 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002945/0.114, allocations: 107.8 kB / 329.5 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002839/0.1143, allocations: 278.8 kB / 329.7 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.1145, allocations: 80.8 kB / 329.8 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001284/0.1147, allocations: 103.6 kB / 329.9 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.1148, allocations: 119.5 kB / 330 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.868e-05/0.1149, allocations: 12 kB / 330.1 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.115, allocations: 51.92 kB / 330.1 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.016e-05/0.1151, allocations: 51.77 kB / 330.2 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1152, allocations: 115.4 kB / 330.3 MB, free: 0.5469 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003082/0.1155, allocations: 271.4 kB / 330.5 MB, free: 288 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1155, allocations: 0 / 330.5 MB, free: 288 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.1155, allocations: 0 / 330.5 MB, free: 288 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.1156, allocations: 0 / 330.5 MB, free: 288 kB / 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.0008078/0.1164, allocations: 0.5458 MB / 331.1 MB, free: 15.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.1164, allocations: 8.031 kB / 331.1 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001562/0.1166, allocations: 36.64 kB / 331.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002715/0.1168, allocations: 256.7 kB / 331.4 MB, free: 15.36 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.948e-05/0.1169, allocations: 16.31 kB / 331.4 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.038e-05/0.1169, allocations: 20.12 kB / 331.4 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003196/0.1172, allocations: 169.2 kB / 331.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.1173, allocations: 0 / 331.6 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.006e-05/0.1173, allocations: 4 kB / 331.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/0.1173, allocations: 4 kB / 331.6 MB, free: 15.14 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.1175, allocations: 119.9 kB / 331.7 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008072/0.1184, allocations: 0.5584 MB / 332.3 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003111/0.1187, allocations: 166.5 kB / 332.4 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001474/0.1188, allocations: 88.83 kB / 332.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.96e-05/0.1189, allocations: 4 kB / 332.5 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.1191, allocations: 127.5 kB / 332.6 MB, free: 14.01 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.463e-06/0.1192, allocations: 0 / 332.6 MB, free: 14.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004634/0.1196, allocations: 225.3 kB / 332.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.09e-05/0.1197, allocations: 55.41 kB / 332.9 MB, free: 13.72 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002298/0.1199, allocations: 253 kB / 333.2 MB, free: 13.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.1199, allocations: 29.7 kB / 333.2 MB, free: 13.43 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.531e-05/0.12, allocations: 144.3 kB / 333.3 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.848e-05/0.1201, allocations: 67.05 kB / 333.4 MB, free: 13.21 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.216e-05/0.1202, allocations: 45.64 kB / 333.4 MB, free: 13.16 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1203, allocations: 334.8 kB / 333.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.1204, allocations: 55.92 kB / 333.8 MB, free: 12.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001267/0.1206, allocations: 91.39 kB / 333.9 MB, free: 12.67 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002368/0.1208, allocations: 139.4 kB / 334 MB, free: 12.52 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1208, allocations: 4 kB / 334 MB, free: 12.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003224/0.1211, allocations: 201.2 kB / 334.2 MB, free: 12.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.1212, allocations: 4 kB / 334.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.1212, allocations: 4 kB / 334.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1212, allocations: 0 / 334.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.1214, allocations: 47.91 kB / 334.3 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.1214, allocations: 7.938 kB / 334.3 MB, free: 12.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.1215, allocations: 23.94 kB / 334.3 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.1216, allocations: 11.97 kB / 334.3 MB, free: 12.22 MB / 286.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.00012/0.1217, allocations: 145.7 kB / 334.5 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.472e-05/0.1217, allocations: 23.72 kB / 334.5 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.33e-05/0.1218, allocations: 30.17 kB / 334.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1218, allocations: 0 / 334.5 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.1218, allocations: 7.938 kB / 334.5 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1218, allocations: 3.984 kB / 334.5 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.1221, allocations: 289.4 kB / 334.8 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1221, allocations: 4 kB / 334.8 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.1223, allocations: 31.98 kB / 334.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.1223, allocations: 3.938 kB / 334.9 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.1223, allocations: 12 kB / 334.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1223, allocations: 0 / 334.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.1223, allocations: 7.875 kB / 334.9 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004628/0.1228, allocations: 284.8 kB / 335.2 MB, free: 11.31 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.297e-05/0.1229, allocations: 92.95 kB / 335.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.46e-05/0.1229, allocations: 8.062 kB / 335.3 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.822e-05/0.123, allocations: 11.92 kB / 335.3 MB, free: 11.18 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.416e-05/0.123, allocations: 15.98 kB / 335.3 MB, free: 11.17 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.1231, allocations: 4 kB / 335.3 MB, free: 11.16 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001593/0.1232, allocations: 184.5 kB / 335.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1232, allocations: 0 / 335.5 MB, free: 10.98 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002572/0.1235, allocations: 63.83 kB / 335.5 MB, free: 10.92 MB / 286.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.0008864/0.1244, allocations: 418.2 kB / 335.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000282/0.1247, allocations: 135.9 kB / 336.1 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.1247, allocations: 0 / 336.1 MB, free: 10.39 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001476/0.1249, allocations: 80.72 kB / 336.2 MB, free: 10.31 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.1252, allocations: 44.5 kB / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009948/0.1262, allocations: 0.6242 MB / 336.8 MB, free: 9.613 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.1265, allocations: 0.7482 MB / 337.6 MB, free: 8.84 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.1267, allocations: 29.92 kB / 337.6 MB, free: 8.812 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.525e-05/0.1267, allocations: 23.44 kB / 337.6 MB, free: 8.789 MB / 286.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1267, allocations: 0 / 337.6 MB, free: 8.789 MB / 286.1 MB Notification: Performance of Templates: time 0.00579/0.1325, allocations: 2.537 MB / 340.2 MB, free: 6.25 MB / 286.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)