Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009429/0.009429, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001863/0.001863, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.992/1.992, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.0013/0.0013, allocations: 49.61 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1227, allocations: 46.63 MB / 373.2 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.012/0.1348, allocations: 9.611 MB / 382.8 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008837/0.1437, allocations: 3.472 MB / 386.3 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002673/0.1465, allocations: 39.81 kB / 386.3 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00252/0.149, allocations: 0.7066 MB / 387 MB, free: 3.387 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.004495/0.1535, allocations: 0.8701 MB / 387.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00166/0.1552, allocations: 451.2 kB / 388.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004843/0.1601, allocations: 2.67 MB / 391 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003085/0.1632, allocations: 1.818 MB / 392.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002887/0.1661, allocations: 1.191 MB / 394 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002803/0.1689, allocations: 1.498 MB / 395.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009969/0.1699, allocations: 304 kB / 395.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.1718, allocations: 0.5659 MB / 396.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001111/0.1729, allocations: 1.017 MB / 397.4 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002255/0.1752, allocations: 1.493 MB / 398.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006164/0.1814, allocations: 4.297 MB / 403.2 MB, free: 3.125 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.1814, allocations: 4 kB / 403.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1814, allocations: 0 / 403.2 MB, free: 3.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001427/0.1816, allocations: 0 / 403.2 MB, free: 3.121 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007374/0.1889, allocations: 3.232 MB / 406.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.189, allocations: 15.88 kB / 406.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.19, allocations: 338.9 kB / 406.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.1934, allocations: 1.637 MB / 408.4 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001214/0.1936, allocations: 148 kB / 408.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00034/0.1939, allocations: 200 kB / 408.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00496/0.1989, allocations: 2.698 MB / 411.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.368e-05/0.199, allocations: 11.89 kB / 411.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001875/0.1992, allocations: 80 kB / 411.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.1993, allocations: 95.92 kB / 411.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004337/0.2037, allocations: 2.283 MB / 413.9 MB, free: 8.191 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/0.2194, allocations: 8.152 MB / 422.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003035/0.2225, allocations: 1.638 MB / 423.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.2245, allocations: 1.105 MB / 424.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000287/0.2248, allocations: 127.2 kB / 424.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.2249, allocations: 43.56 kB / 425 MB, free: 12.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.847e-06/0.2249, allocations: 0 / 425 MB, free: 12.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01422/0.2391, allocations: 6.244 MB / 431.2 MB, free: 6.492 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.2392, allocations: 68.66 kB / 431.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003466/0.2427, allocations: 2.16 MB / 433.5 MB, free: 4.207 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.243, allocations: 53.62 kB / 433.5 MB, free: 4.148 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.2441, allocations: 1.122 MB / 434.6 MB, free: 3.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000653/0.2447, allocations: 479.9 kB / 435.1 MB, free: 2.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004599/0.2452, allocations: 243.6 kB / 435.3 MB, free: 2.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002052/0.2454, allocations: 361.9 kB / 435.7 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001478/0.2469, allocations: 0.7574 MB / 436.4 MB, free: 1.184 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/0.2486, allocations: 1.013 MB / 437.5 MB, free: 80 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003129/0.2517, allocations: 1.858 MB / 439.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.676e-06/0.2517, allocations: 0 / 439.3 MB, free: 14.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006129/0.2579, allocations: 2.777 MB / 442.1 MB, free: 11.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/0.2579, allocations: 8 kB / 442.1 MB, free: 11.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.258, allocations: 8 kB / 442.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.2601, allocations: 0.7892 MB / 442.9 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.2613, allocations: 267.6 kB / 443.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01382/0.2752, allocations: 9.613 MB / 452.8 MB, free: 376 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002318/0.2775, allocations: 87.89 kB / 452.9 MB, free: 288 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003799/0.2779, allocations: 55.98 kB / 452.9 MB, free: 232 kB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.3338/0.6117, allocations: 0.7315 MB / 453.6 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00109/0.6128, allocations: 212.6 kB / 453.9 MB, free: 69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007662/0.6205, allocations: 2.475 MB / 456.3 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-05/0.6206, allocations: 14.97 kB / 456.3 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.003e-05/0.6206, allocations: 6.672 kB / 456.3 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.463e-05/0.6207, allocations: 6.047 kB / 456.4 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/0.6355, allocations: 4.945 MB / 461.3 MB, free: 67.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.345e-05/0.6356, allocations: 4.312 kB / 461.3 MB, free: 67.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.6367, allocations: 214.6 kB / 461.5 MB, free: 67.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002299/0.639, allocations: 0.6475 MB / 462.2 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002097/0.6393, allocations: 38.23 kB / 462.2 MB, free: 67.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.6506, allocations: 8.702 MB / 470.9 MB, free: 60.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.252e-06/0.6506, allocations: 5.312 kB / 470.9 MB, free: 60.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007442/0.6581, allocations: 3.544 MB / 474.4 MB, free: 59.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/0.6596, allocations: 460.5 kB / 474.9 MB, free: 59.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/0.6599, allocations: 27.84 kB / 474.9 MB, free: 59.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.661, allocations: 86.42 kB / 475 MB, free: 59.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003312/0.6613, allocations: 104 kB / 475.1 MB, free: 59.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.481e-05/0.6614, allocations: 35.61 kB / 475.1 MB, free: 59.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.6638, allocations: 1.518 MB / 476.7 MB, free: 58.5 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.6638, allocations: 3.938 kB / 476.7 MB, free: 58.5 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0023/0.6661, allocations: 0.5272 MB / 477.2 MB, free: 58.45 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001255/0.6674, allocations: 461.6 kB / 477.6 MB, free: 58.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00426/0.6717, allocations: 2.396 MB / 480 MB, free: 56.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.423e-06/0.6717, allocations: 0 / 480 MB, free: 56.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002243/0.6739, allocations: 1.596 MB / 481.6 MB, free: 55.31 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0026/0.6766, allocations: 454.1 kB / 482.1 MB, free: 54.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007753/0.6843, allocations: 5.208 MB / 487.3 MB, free: 49.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/0.6858, allocations: 1.943 MB / 489.2 MB, free: 47.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00151/0.6873, allocations: 387.7 kB / 489.6 MB, free: 47.28 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004238/0.6877, allocations: 131.4 kB / 489.7 MB, free: 47.15 MB / 382.1 MB Notification: Performance of SimCode: time 1.963e-06/0.6877, allocations: 4 kB / 489.7 MB, free: 47.15 MB / 382.1 MB Notification: Performance of Templates: time 0.05506/0.7428, allocations: 30.57 MB / 0.5081 GB, free: 16.55 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)