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.001127/0.001127, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002261/0.002261, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.528/1.528, allocations: 205.1 MB / 222.4 MB, free: 4.613 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.001209/0.001209, allocations: 59.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2308, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003417/0.2343, allocations: 2.218 MB / 327.5 MB, free: 104 kB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.001601/0.2359, allocations: 0.9629 MB / 328.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.236, allocations: 8.469 kB / 328.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000361/0.2364, allocations: 97.11 kB / 328.6 MB, free: 15.27 MB / 270.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.0003214/0.2367, allocations: 122.2 kB / 328.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000305/0.237, allocations: 123.7 kB / 328.8 MB, free: 15.08 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003323/0.2374, allocations: 278 kB / 329.1 MB, free: 14.93 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002251/0.2376, allocations: 92.94 kB / 329.2 MB, free: 14.87 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001528/0.2378, allocations: 110.3 kB / 329.3 MB, free: 14.81 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.238, allocations: 122.5 kB / 329.4 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.238, allocations: 17.94 kB / 329.4 MB, free: 14.74 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.2381, allocations: 48.8 kB / 329.5 MB, free: 14.73 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.572e-05/0.2382, allocations: 52.11 kB / 329.5 MB, free: 14.69 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001373/0.2384, allocations: 125.7 kB / 329.7 MB, free: 14.6 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003551/0.2387, allocations: 288 kB / 329.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2388, allocations: 0 / 329.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2388, allocations: 0.9688 kB / 329.9 MB, free: 14.41 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.2388, allocations: 0 / 329.9 MB, free: 14.41 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.0008856/0.2397, allocations: 0.5378 MB / 330.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.2397, allocations: 9.031 kB / 330.5 MB, free: 13.9 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002365/0.24, allocations: 32.16 kB / 330.5 MB, free: 13.89 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.2403, allocations: 255 kB / 330.8 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.2403, allocations: 16.09 kB / 330.8 MB, free: 13.62 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.2404, allocations: 26.73 kB / 330.8 MB, free: 13.6 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003526/0.2407, allocations: 162 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.2408, allocations: 1.312 kB / 331 MB, free: 13.5 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.2408, allocations: 13.47 kB / 331 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.2408, allocations: 7.5 kB / 331 MB, free: 13.48 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002664/0.2411, allocations: 114.5 kB / 331.1 MB, free: 13.43 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008992/0.242, allocations: 0.561 MB / 331.7 MB, free: 12.94 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003342/0.2423, allocations: 170.1 kB / 331.8 MB, free: 12.85 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.2425, allocations: 84.52 kB / 331.9 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.2426, allocations: 3.281 kB / 331.9 MB, free: 12.8 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.2429, allocations: 115.4 kB / 332 MB, free: 12.71 MB / 270.1 MB Notification: Performance of pre-optimization done (n=20): time 1.733e-06/0.2429, allocations: 0 / 332 MB, free: 12.71 MB / 270.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005073/0.2434, allocations: 234.8 kB / 332.3 MB, free: 12.59 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/0.2434, allocations: 57.62 kB / 332.3 MB, free: 12.52 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.2437, allocations: 250.8 kB / 332.6 MB, free: 12.36 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.2437, allocations: 30.92 kB / 332.6 MB, free: 12.32 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.539e-05/0.2438, allocations: 139.8 kB / 332.7 MB, free: 12.19 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.2439, allocations: 68.03 kB / 332.8 MB, free: 12.13 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.215e-05/0.2439, allocations: 40.06 kB / 332.8 MB, free: 12.1 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.2441, allocations: 336.6 kB / 333.2 MB, free: 11.77 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.2442, allocations: 54.72 kB / 333.2 MB, free: 11.74 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000135/0.2443, allocations: 81.5 kB / 333.3 MB, free: 11.68 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.2446, allocations: 147.6 kB / 333.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2446, allocations: 0 / 333.4 MB, free: 11.54 MB / 270.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003252/0.2449, allocations: 213.2 kB / 333.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.2449, allocations: 4 kB / 333.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.2449, allocations: 0 / 333.6 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.245, allocations: 4 kB / 333.7 MB, free: 11.32 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002015/0.2452, allocations: 39.98 kB / 333.7 MB, free: 11.28 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.2452, allocations: 15.81 kB / 333.7 MB, free: 11.26 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.886e-05/0.2453, allocations: 15.84 kB / 333.7 MB, free: 11.25 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.2453, allocations: 7.984 kB / 333.7 MB, free: 11.24 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 ($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.0001176/0.2454, allocations: 145.9 kB / 333.9 MB, free: 11.09 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.2455, allocations: 27.7 kB / 333.9 MB, free: 11.06 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.2455, allocations: 30.17 kB / 333.9 MB, free: 11.03 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2455, allocations: 0 / 333.9 MB, free: 11.03 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.2456, allocations: 3.938 kB / 333.9 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.2456, allocations: 3.984 kB / 333.9 MB, free: 11.02 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002637/0.2458, allocations: 289.4 kB / 334.2 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2459, allocations: 0 / 334.2 MB, free: 10.69 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001768/0.246, allocations: 35.92 kB / 334.3 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.246, allocations: 0 / 334.3 MB, free: 10.65 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.2461, allocations: 12 kB / 334.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2461, allocations: 0 / 334.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2461, allocations: 3.938 kB / 334.3 MB, free: 10.64 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004905/0.2466, allocations: 288.8 kB / 334.6 MB, free: 10.34 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.284e-05/0.2467, allocations: 100.8 kB / 334.7 MB, free: 10.22 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.517e-05/0.2467, allocations: 4 kB / 334.7 MB, free: 10.21 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.2468, allocations: 11.94 kB / 334.7 MB, free: 10.2 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.671e-05/0.2468, allocations: 16.03 kB / 334.7 MB, free: 10.19 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.2469, allocations: 8 kB / 334.7 MB, free: 10.18 MB / 270.1 MB Notification: Performance of sorting global known variables: time 0.0001683/0.247, allocations: 188.5 kB / 334.9 MB, free: 9.996 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2471, allocations: 0 / 334.9 MB, free: 9.996 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.2473, allocations: 55.91 kB / 334.9 MB, free: 9.941 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 (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.0009118/0.2482, allocations: 413.9 kB / 335.3 MB, free: 9.535 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0003285/0.2486, allocations: 152.1 kB / 335.5 MB, free: 9.387 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2486, allocations: 0 / 335.5 MB, free: 9.387 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.2487, allocations: 79.86 kB / 335.6 MB, free: 9.309 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00033/0.2491, allocations: 52.94 kB / 335.6 MB, free: 9.258 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009374/0.25, allocations: 0.5417 MB / 336.2 MB, free: 8.688 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003392/0.2504, allocations: 0.7519 MB / 336.9 MB, free: 7.91 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 9.989e-05/0.2505, allocations: 25.94 kB / 336.9 MB, free: 7.887 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.562e-05/0.2505, allocations: 19.44 kB / 336.9 MB, free: 7.867 MB / 270.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2505, allocations: 0 / 336.9 MB, free: 7.867 MB / 270.1 MB Notification: Performance of Templates: time 0.005704/0.2562, allocations: 2.662 MB / 339.6 MB, free: 5.203 MB / 270.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)