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.01033/0.01033, allocations: 106.2 kB / 15.74 MB, free: 6.441 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.002054/0.002054, allocations: 195.1 kB / 16.67 MB, free: 6.355 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.636/1.636, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001133/0.001133, allocations: 46.31 kB / 326.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1039, allocations: 46.61 MB / 373.1 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004013/0.1079, allocations: 2.228 MB / 375.4 MB, free: 15.09 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.1095, allocations: 0.9594 MB / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1097, allocations: 0 / 376.3 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003793/0.1101, allocations: 95.5 kB / 376.4 MB, free: 14.03 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.1104, allocations: 123.2 kB / 376.5 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003064/0.1107, allocations: 123.7 kB / 376.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.111, allocations: 282.8 kB / 376.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002091/0.1112, allocations: 100.5 kB / 377 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001336/0.1114, allocations: 115.5 kB / 377.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.1116, allocations: 123.5 kB / 377.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.184e-05/0.1116, allocations: 16 kB / 377.3 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000128/0.1118, allocations: 55.98 kB / 377.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.237e-05/0.1119, allocations: 51.83 kB / 377.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.1121, allocations: 119.3 kB / 377.5 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003885/0.1125, allocations: 291 kB / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.1125, allocations: 0 / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1125, allocations: 0 / 377.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.1125, allocations: 4 kB / 377.8 MB, free: 12.65 MB / 318.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.0008574/0.1134, allocations: 0.5342 MB / 378.3 MB, free: 12.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1134, allocations: 12.03 kB / 378.3 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001524/0.1136, allocations: 24.66 kB / 378.4 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000373/0.1139, allocations: 256.8 kB / 378.6 MB, free: 11.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.288e-05/0.114, allocations: 12.38 kB / 378.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.114, allocations: 24.12 kB / 378.7 MB, free: 11.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003199/0.1143, allocations: 165.1 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1144, allocations: 0 / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.1144, allocations: 4 kB / 378.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1144, allocations: 11.98 kB / 378.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.1146, allocations: 111.9 kB / 378.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008638/0.1155, allocations: 0.5662 MB / 379.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003063/0.1158, allocations: 158.5 kB / 379.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001615/0.116, allocations: 88.81 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.116, allocations: 7.984 kB / 379.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002137/0.1163, allocations: 123.6 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.533e-06/0.1163, allocations: 3.938 kB / 379.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004686/0.1167, allocations: 229.3 kB / 380.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.06e-05/0.1168, allocations: 59.41 kB / 380.2 MB, free: 10.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002261/0.117, allocations: 245 kB / 380.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1171, allocations: 29.7 kB / 380.4 MB, free: 9.812 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.1172, allocations: 148.3 kB / 380.6 MB, free: 9.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.414e-05/0.1172, allocations: 78.98 kB / 380.7 MB, free: 9.586 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.635e-05/0.1173, allocations: 41.7 kB / 380.7 MB, free: 9.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1174, allocations: 334.8 kB / 381 MB, free: 9.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.1175, allocations: 47.97 kB / 381.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.1177, allocations: 95.28 kB / 381.2 MB, free: 9.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002355/0.1179, allocations: 147.3 kB / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.1179, allocations: 0 / 381.3 MB, free: 8.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003379/0.1183, allocations: 205.2 kB / 381.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1183, allocations: 8 kB / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1183, allocations: 0 / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.1183, allocations: 0 / 381.5 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002066/0.1185, allocations: 52.02 kB / 381.6 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.367e-06/0.1186, allocations: 3.938 kB / 381.6 MB, free: 8.625 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.98e-05/0.1187, allocations: 19.83 kB / 381.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.1187, allocations: 8 kB / 381.6 MB, free: 8.598 MB / 318.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.0001427/0.1188, allocations: 141.8 kB / 381.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.726e-05/0.1189, allocations: 23.72 kB / 381.8 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.594e-05/0.1189, allocations: 22.19 kB / 381.8 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.119, allocations: 4 kB / 381.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.119, allocations: 7.875 kB / 381.8 MB, free: 8.391 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.119, allocations: 7.984 kB / 381.8 MB, free: 8.383 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002805/0.1193, allocations: 285.4 kB / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1193, allocations: 0 / 382.1 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.1195, allocations: 31.98 kB / 382.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.1195, allocations: 4 kB / 382.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.618e-05/0.1195, allocations: 4 kB / 382.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1195, allocations: 0 / 382.1 MB, free: 8.016 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1195, allocations: 3.938 kB / 382.1 MB, free: 8.012 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005024/0.12, allocations: 292.7 kB / 382.4 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.356e-05/0.1201, allocations: 96.8 kB / 382.5 MB, free: 7.594 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.291e-05/0.1201, allocations: 8 kB / 382.5 MB, free: 7.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.1202, allocations: 11.92 kB / 382.5 MB, free: 7.574 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.154e-05/0.1203, allocations: 15.98 kB / 382.5 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.1203, allocations: 4 kB / 382.5 MB, free: 7.555 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001604/0.1205, allocations: 184.5 kB / 382.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1205, allocations: 0 / 382.7 MB, free: 7.371 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002607/0.1207, allocations: 59.92 kB / 382.8 MB, free: 7.312 MB / 318.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.0008986/0.1216, allocations: 408.4 kB / 383.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003104/0.122, allocations: 147.9 kB / 383.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.122, allocations: 3.938 kB / 383.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.1221, allocations: 75.91 kB / 383.4 MB, free: 6.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003348/0.1225, allocations: 60.69 kB / 383.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008896/0.1234, allocations: 0.5334 MB / 384 MB, free: 6.062 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.1237, allocations: 0.7482 MB / 384.7 MB, free: 5.289 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.173e-05/0.1238, allocations: 29.92 kB / 384.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.265e-05/0.1238, allocations: 23.44 kB / 384.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1238, allocations: 4 kB / 384.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of Templates: time 0.005862/0.1297, allocations: 2.684 MB / 387.5 MB, free: 2.543 MB / 318.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)