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.001196/0.001196, allocations: 115.1 kB / 17.07 MB, free: 5.969 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.001132/0.001132, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.47/1.47, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001363/0.001363, allocations: 51.92 kB / 327.8 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09983/0.1012, allocations: 46.63 MB / 374.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00442/0.1057, allocations: 2.227 MB / 376.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.1077, allocations: 0.9555 MB / 377.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002352/0.1079, allocations: 0 / 377.6 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004405/0.1084, allocations: 95.5 kB / 377.7 MB, free: 1.285 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.0004993/0.1089, allocations: 127.2 kB / 377.9 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004731/0.1094, allocations: 127.6 kB / 378 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004818/0.1099, allocations: 278.9 kB / 378.3 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1102, allocations: 92.55 kB / 378.4 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003352/0.1105, allocations: 115.5 kB / 378.5 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002585/0.1108, allocations: 127.5 kB / 378.6 MB, free: 444 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.649e-05/0.1109, allocations: 20 kB / 378.6 MB, free: 424 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001755/0.111, allocations: 43.98 kB / 378.7 MB, free: 380 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.491e-05/0.1111, allocations: 55.83 kB / 378.7 MB, free: 324 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.1113, allocations: 127.3 kB / 378.8 MB, free: 196 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1845/0.2958, allocations: 275.4 kB / 379.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.2959, allocations: 3.062 kB / 379.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2959, allocations: 0 / 379.1 MB, free: 10.28 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.2959, allocations: 0.7188 kB / 379.1 MB, free: 10.28 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.0008057/0.2967, allocations: 0.5453 MB / 379.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.2968, allocations: 8.688 kB / 379.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.2969, allocations: 32.55 kB / 379.7 MB, free: 9.852 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.2973, allocations: 252.4 kB / 379.9 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.45e-05/0.2973, allocations: 13.5 kB / 380 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.141e-05/0.2974, allocations: 18.95 kB / 380 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003453/0.2977, allocations: 165.3 kB / 380.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.2977, allocations: 1.375 kB / 380.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.2978, allocations: 9.578 kB / 380.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.2978, allocations: 4.75 kB / 380.1 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002468/0.298, allocations: 119 kB / 380.3 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000831/0.2989, allocations: 0.5545 MB / 380.8 MB, free: 9.297 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.2992, allocations: 171 kB / 381 MB, free: 9.273 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001392/0.2993, allocations: 83.02 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.2994, allocations: 7.031 kB / 381.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.2996, allocations: 122 kB / 381.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.573e-06/0.2996, allocations: 0 / 381.2 MB, free: 9.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004773/0.3001, allocations: 229.5 kB / 381.4 MB, free: 9.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.963e-05/0.3001, allocations: 54.03 kB / 381.5 MB, free: 9.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.3004, allocations: 254.8 kB / 381.7 MB, free: 8.996 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.3004, allocations: 29.39 kB / 381.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.343e-05/0.3005, allocations: 147.1 kB / 381.9 MB, free: 8.867 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.945e-05/0.3005, allocations: 69.97 kB / 382 MB, free: 8.824 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.272e-05/0.3006, allocations: 41.81 kB / 382 MB, free: 8.809 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.3007, allocations: 338.9 kB / 382.3 MB, free: 8.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001311/0.3008, allocations: 50.22 kB / 382.4 MB, free: 8.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/0.301, allocations: 95.73 kB / 382.5 MB, free: 8.453 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002694/0.3012, allocations: 147.3 kB / 382.6 MB, free: 8.418 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3013, allocations: 0.625 kB / 382.6 MB, free: 8.418 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003189/0.3016, allocations: 203.4 kB / 382.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3016, allocations: 5.719 kB / 382.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.3016, allocations: 1.219 kB / 382.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3016, allocations: 1.188 kB / 382.8 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.3019, allocations: 52.03 kB / 382.9 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.3019, allocations: 2.391 kB / 382.9 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.822e-05/0.302, allocations: 25.64 kB / 382.9 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.302, allocations: 5.781 kB / 382.9 MB, free: 8.355 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 9.806e-05/0.3021, allocations: 149.3 kB / 383.1 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.134e-05/0.3021, allocations: 21.41 kB / 383.1 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.293e-05/0.3022, allocations: 33.73 kB / 383.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-06/0.3022, allocations: 1.375 kB / 383.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3022, allocations: 3.062 kB / 383.1 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.3022, allocations: 7.078 kB / 383.1 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002254/0.3025, allocations: 283 kB / 383.4 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.3025, allocations: 5.734 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.3027, allocations: 31.86 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.3027, allocations: 5.453 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.3027, allocations: 6.656 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3027, allocations: 1.25 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3027, allocations: 1.375 kB / 383.4 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004328/0.3032, allocations: 289.4 kB / 383.7 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.944e-05/0.3032, allocations: 98.94 kB / 383.8 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.258e-05/0.3032, allocations: 9.391 kB / 383.8 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.493e-05/0.3033, allocations: 6.312 kB / 383.8 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.018e-05/0.3034, allocations: 15.38 kB / 383.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-05/0.3034, allocations: 9.109 kB / 383.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.3035, allocations: 188.2 kB / 384 MB, free: 7.738 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3036, allocations: 0 / 384 MB, free: 7.738 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.3038, allocations: 49.16 kB / 384.1 MB, free: 7.738 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.0008445/0.3047, allocations: 425 kB / 384.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003021/0.305, allocations: 148.2 kB / 384.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.305, allocations: 0 / 384.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001302/0.3051, allocations: 72.62 kB / 384.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.3055, allocations: 46.03 kB / 384.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008194/0.3063, allocations: 0.5333 MB / 385.3 MB, free: 7.109 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001837/0.3065, allocations: 0.7501 MB / 386.1 MB, free: 6.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.3066, allocations: 28.28 kB / 386.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.408e-05/0.3067, allocations: 23.72 kB / 386.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3067, allocations: 0 / 386.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of Templates: time 0.006191/0.3129, allocations: 2.746 MB / 388.9 MB, free: 6.125 MB / 318.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)