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.001127/0.001127, allocations: 112.3 kB / 16.62 MB, free: 6.812 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.001001/0.001001, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.451/1.451, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001159/0.001159, allocations: 47.94 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1024, allocations: 46.62 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004108/0.1066, allocations: 2.274 MB / 328.4 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1083, allocations: 0.9557 MB / 329.4 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001411/0.1085, allocations: 4 kB / 329.4 MB, free: 1.535 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005029/0.109, allocations: 87.69 kB / 329.4 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003882/0.1094, allocations: 107.4 kB / 329.6 MB, free: 1.344 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.1098, allocations: 111.8 kB / 329.7 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003785/0.1102, allocations: 282.8 kB / 329.9 MB, free: 0.957 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1105, allocations: 92.36 kB / 330 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001585/0.1106, allocations: 107.6 kB / 330.1 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001998/0.1108, allocations: 131.5 kB / 330.3 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.698e-05/0.1109, allocations: 16 kB / 330.3 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001475/0.111, allocations: 47.98 kB / 330.3 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1111, allocations: 63.77 kB / 330.4 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.1113, allocations: 123.4 kB / 330.5 MB, free: 396 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003869/0.1117, allocations: 279.4 kB / 330.8 MB, free: 116 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.894e-06/0.1117, allocations: 0 / 330.8 MB, free: 116 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.1117, allocations: 0 / 330.8 MB, free: 116 kB / 270.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.1117, allocations: 0 / 330.8 MB, free: 116 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.0009999/0.1127, allocations: 0.5419 MB / 331.3 MB, free: 15.52 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.756e-05/0.1128, allocations: 12.03 kB / 331.3 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002/0.113, allocations: 28.66 kB / 331.4 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/0.1134, allocations: 256.6 kB / 331.6 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.1134, allocations: 16.38 kB / 331.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.356e-05/0.1135, allocations: 20.12 kB / 331.6 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.1138, allocations: 165.2 kB / 331.8 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.912e-05/0.1139, allocations: 0 / 331.8 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.1139, allocations: 4 kB / 331.8 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.747e-06/0.1139, allocations: 8 kB / 331.8 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.1142, allocations: 119.9 kB / 331.9 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009317/0.1151, allocations: 0.5624 MB / 332.5 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000327/0.1155, allocations: 154.5 kB / 332.7 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.1156, allocations: 88.77 kB / 332.7 MB, free: 14 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.944e-05/0.1157, allocations: 7.984 kB / 332.7 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003146/0.116, allocations: 115.7 kB / 332.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.116, allocations: 0 / 332.9 MB, free: 13.87 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005119/0.1165, allocations: 237.2 kB / 333.1 MB, free: 13.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.1166, allocations: 59.34 kB / 333.1 MB, free: 13.56 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002523/0.1168, allocations: 249 kB / 333.4 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.1169, allocations: 25.7 kB / 333.4 MB, free: 13.27 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.117, allocations: 144.3 kB / 333.6 MB, free: 13.13 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.152e-05/0.117, allocations: 75.02 kB / 333.6 MB, free: 13.05 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/0.1171, allocations: 45.64 kB / 333.7 MB, free: 13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.1172, allocations: 342.8 kB / 334 MB, free: 12.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1174, allocations: 51.97 kB / 334.1 MB, free: 12.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.1175, allocations: 83.41 kB / 334.1 MB, free: 12.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/0.1177, allocations: 147.3 kB / 334.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1177, allocations: 0 / 334.3 MB, free: 12.36 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003195/0.1181, allocations: 201.2 kB / 334.5 MB, free: 12.16 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.1181, allocations: 8 kB / 334.5 MB, free: 12.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1181, allocations: 3.938 kB / 334.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.1181, allocations: 0 / 334.5 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002447/0.1184, allocations: 47.92 kB / 334.5 MB, free: 12.1 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.011e-05/0.1184, allocations: 7.922 kB / 334.5 MB, free: 12.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001176/0.1185, allocations: 23.94 kB / 334.6 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.1186, allocations: 12 kB / 334.6 MB, free: 12.05 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.0001483/0.1187, allocations: 145.7 kB / 334.7 MB, free: 11.9 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.476e-05/0.1188, allocations: 23.7 kB / 334.7 MB, free: 11.88 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.344e-05/0.1188, allocations: 34.17 kB / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1188, allocations: 4 kB / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.1189, allocations: 3.938 kB / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1189, allocations: 0 / 334.8 MB, free: 11.84 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003115/0.1192, allocations: 281.4 kB / 335.1 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1192, allocations: 4 kB / 335.1 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001949/0.1194, allocations: 43.91 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1194, allocations: 0 / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.809e-05/0.1194, allocations: 4 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1195, allocations: 0 / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.1195, allocations: 3.938 kB / 335.1 MB, free: 11.46 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005231/0.12, allocations: 284.9 kB / 335.4 MB, free: 11.16 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.629e-05/0.1201, allocations: 96.97 kB / 335.5 MB, free: 11.05 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.1201, allocations: 4 kB / 335.5 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.64e-05/0.1202, allocations: 7.938 kB / 335.5 MB, free: 11.04 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.736e-05/0.1203, allocations: 15.98 kB / 335.5 MB, free: 11.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.1203, allocations: 7.984 kB / 335.5 MB, free: 11.01 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001841/0.1205, allocations: 184.5 kB / 335.7 MB, free: 10.83 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1205, allocations: 4 kB / 335.7 MB, free: 10.83 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1208, allocations: 59.84 kB / 335.8 MB, free: 10.77 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.0009712/0.1218, allocations: 422.1 kB / 336.2 MB, free: 10.36 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003855/0.1222, allocations: 147.8 kB / 336.3 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1222, allocations: 0 / 336.3 MB, free: 10.22 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.1224, allocations: 79.86 kB / 336.4 MB, free: 10.14 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003784/0.1228, allocations: 52.52 kB / 336.5 MB, free: 10.09 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.124, allocations: 0.6148 MB / 337.1 MB, free: 9.445 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003914/0.1244, allocations: 0.748 MB / 337.8 MB, free: 8.672 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.00012/0.1245, allocations: 33.92 kB / 337.9 MB, free: 8.641 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.759e-05/0.1246, allocations: 23.44 kB / 337.9 MB, free: 8.617 MB / 286.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1246, allocations: 4 kB / 337.9 MB, free: 8.613 MB / 286.1 MB Notification: Performance of Templates: time 0.006866/0.1315, allocations: 2.627 MB / 340.5 MB, free: 5.984 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)