Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.01181/0.01181, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.00187/0.00187, allocations: 192 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.899/1.899, allocations: 205.1 MB / 222.6 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.001656/0.001656, allocations: 50.17 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.128, allocations: 46.63 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01152/0.1395, allocations: 9.607 MB / 382.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007222/0.1468, allocations: 3.479 MB / 386.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001848/0.1487, allocations: 43.81 kB / 386.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002092/0.1508, allocations: 0.6637 MB / 387 MB, free: 3.41 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.003007/0.1539, allocations: 0.8232 MB / 387.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00119/0.1551, allocations: 455.2 kB / 388.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003486/0.1586, allocations: 2.67 MB / 390.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002073/0.1606, allocations: 1.818 MB / 392.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.1627, allocations: 1.187 MB / 393.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.1647, allocations: 1.498 MB / 395.4 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003975/0.1651, allocations: 304 kB / 395.7 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.1663, allocations: 0.5542 MB / 396.3 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000865/0.1671, allocations: 1.025 MB / 397.3 MB, free: 9.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.1687, allocations: 1.485 MB / 398.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004719/0.1735, allocations: 4.301 MB / 403.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1735, allocations: 7.938 kB / 403.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1735, allocations: 0 / 403.1 MB, free: 3.195 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.1736, allocations: 3.938 kB / 403.1 MB, free: 3.191 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.006543/0.1802, allocations: 3.237 MB / 406.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.1802, allocations: 11.89 kB / 406.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008491/0.1811, allocations: 338.9 kB / 406.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002803/0.1839, allocations: 1.632 MB / 408.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001178/0.184, allocations: 152 kB / 408.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003075/0.1843, allocations: 207.9 kB / 408.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004621/0.189, allocations: 2.694 MB / 411.4 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.781e-05/0.189, allocations: 3.953 kB / 411.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001946/0.1893, allocations: 84 kB / 411.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.1894, allocations: 95.92 kB / 411.6 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004221/0.1936, allocations: 2.276 MB / 413.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01459/0.2082, allocations: 8.148 MB / 422 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.2113, allocations: 1.643 MB / 423.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001974/0.2133, allocations: 1.108 MB / 424.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002571/0.2136, allocations: 126 kB / 424.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.2136, allocations: 47.5 kB / 424.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.238e-06/0.2136, allocations: 4 kB / 424.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01472/0.2284, allocations: 6.241 MB / 431.1 MB, free: 6.562 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.2285, allocations: 64.72 kB / 431.2 MB, free: 6.488 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00453/0.233, allocations: 2.152 MB / 433.4 MB, free: 4.289 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001277/0.2332, allocations: 49.64 kB / 433.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.2343, allocations: 1.133 MB / 434.5 MB, free: 3.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005564/0.2349, allocations: 475.9 kB / 435 MB, free: 2.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005/0.2354, allocations: 247.5 kB / 435.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.2356, allocations: 361.9 kB / 435.6 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001363/0.2369, allocations: 0.7574 MB / 436.4 MB, free: 1.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001685/0.2386, allocations: 1.009 MB / 437.4 MB, free: 160 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003123/0.2418, allocations: 1.869 MB / 439.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.746e-06/0.2418, allocations: 0 / 439.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006021/0.2478, allocations: 2.77 MB / 442 MB, free: 11.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.933e-05/0.2479, allocations: 8 kB / 442 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.2479, allocations: 8 kB / 442 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002264/0.2502, allocations: 0.7853 MB / 442.8 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001128/0.2513, allocations: 271.5 kB / 443.1 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/0.2654, allocations: 9.601 MB / 452.7 MB, free: 460 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.2674, allocations: 95.78 kB / 452.8 MB, free: 364 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003147/0.2677, allocations: 55.98 kB / 452.8 MB, free: 308 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.3109/0.5786, allocations: 0.7291 MB / 453.6 MB, free: 68.96 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000998/0.5797, allocations: 213.3 kB / 453.8 MB, free: 68.96 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006295/0.586, allocations: 2.482 MB / 456.2 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.439e-05/0.5861, allocations: 15.41 kB / 456.3 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.366e-05/0.5861, allocations: 7.062 kB / 456.3 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.594e-05/0.5862, allocations: 6.609 kB / 456.3 MB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01344/0.5996, allocations: 4.943 MB / 461.2 MB, free: 67.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-05/0.5997, allocations: 1.312 kB / 461.2 MB, free: 67.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.6009, allocations: 214 kB / 461.4 MB, free: 67.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/0.6031, allocations: 0.645 MB / 462.1 MB, free: 67.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.6032, allocations: 35.59 kB / 462.1 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.6141, allocations: 8.715 MB / 470.8 MB, free: 60.99 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.6142, allocations: 1.938 kB / 470.8 MB, free: 60.99 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006656/0.6209, allocations: 3.544 MB / 474.4 MB, free: 59.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.6225, allocations: 454.7 kB / 474.8 MB, free: 59.43 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003326/0.6229, allocations: 31.14 kB / 474.8 MB, free: 59.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.6239, allocations: 86.92 kB / 474.9 MB, free: 59.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004304/0.6243, allocations: 100.3 kB / 475 MB, free: 59.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001127/0.6245, allocations: 39.61 kB / 475.1 MB, free: 59.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0027/0.6272, allocations: 1.516 MB / 476.6 MB, free: 58.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6272, allocations: 0 / 476.6 MB, free: 58.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002647/0.6299, allocations: 0.535 MB / 477.1 MB, free: 58.47 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.001309/0.6312, allocations: 468.8 kB / 477.6 MB, free: 58.17 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004325/0.6355, allocations: 2.386 MB / 480 MB, free: 56.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.6356, allocations: 0 / 480 MB, free: 56.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002323/0.6379, allocations: 1.597 MB / 481.6 MB, free: 55.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002815/0.6407, allocations: 458.5 kB / 482 MB, free: 54.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007985/0.6487, allocations: 5.201 MB / 487.2 MB, free: 49.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00142/0.6502, allocations: 1.947 MB / 489.2 MB, free: 47.75 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001456/0.6517, allocations: 391.7 kB / 489.5 MB, free: 47.37 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003628/0.652, allocations: 127.4 kB / 489.7 MB, free: 47.24 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.6521, allocations: 0 / 489.7 MB, free: 47.24 MB / 382.1 MB Notification: Performance of Templates: time 0.05358/0.7056, allocations: 30.58 MB / 0.508 GB, free: 16.64 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)