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.0109/0.0109, allocations: 106.3 kB / 15.74 MB, free: 6.004 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.001902/0.001902, allocations: 196.5 kB / 16.68 MB, free: 5.93 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.967/1.967, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001367/0.001367, allocations: 54.25 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 46.62 MB / 373.2 MB, free: 1.277 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01233/0.123, allocations: 9.611 MB / 382.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007797/0.1309, allocations: 3.479 MB / 386.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.1329, allocations: 39.81 kB / 386.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.1353, allocations: 0.6988 MB / 387 MB, free: 3.379 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.003478/0.1389, allocations: 0.8701 MB / 387.9 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001349/0.1402, allocations: 455.2 kB / 388.4 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003462/0.1437, allocations: 2.67 MB / 391 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002045/0.1457, allocations: 1.818 MB / 392.8 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.1474, allocations: 1.187 MB / 394 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001811/0.1493, allocations: 1.498 MB / 395.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003839/0.1496, allocations: 308 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.1508, allocations: 0.5503 MB / 396.4 MB, free: 9.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.1519, allocations: 1.028 MB / 397.4 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001729/0.1536, allocations: 1.481 MB / 398.9 MB, free: 7.441 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004378/0.158, allocations: 4.283 MB / 403.2 MB, free: 3.145 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.728e-06/0.158, allocations: 4 kB / 403.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.158, allocations: 0 / 403.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.402e-05/0.1581, allocations: 4 kB / 403.2 MB, free: 3.137 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.007719/0.1658, allocations: 3.157 MB / 406.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.93e-05/0.1659, allocations: 11.89 kB / 406.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009288/0.1669, allocations: 325.2 kB / 406.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/0.1698, allocations: 1.603 MB / 408.3 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000134/0.1699, allocations: 163.9 kB / 408.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003321/0.1703, allocations: 207.9 kB / 408.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004599/0.1749, allocations: 2.69 MB / 411.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.556e-05/0.175, allocations: 7.891 kB / 411.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/0.1751, allocations: 87.98 kB / 411.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001195/0.1753, allocations: 95.88 kB / 411.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004027/0.1793, allocations: 2.276 MB / 413.8 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0145/0.1938, allocations: 8.138 MB / 421.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002887/0.1967, allocations: 1.634 MB / 423.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001936/0.1987, allocations: 1.102 MB / 424.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002691/0.199, allocations: 130 kB / 424.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.762e-05/0.199, allocations: 55.44 kB / 424.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.278e-06/0.1991, allocations: 0 / 424.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01285/0.2119, allocations: 6.201 MB / 431 MB, free: 6.664 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/0.212, allocations: 64.72 kB / 431.1 MB, free: 6.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002986/0.215, allocations: 2.156 MB / 433.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001842/0.2152, allocations: 49.7 kB / 433.3 MB, free: 4.332 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008016/0.216, allocations: 1.111 MB / 434.4 MB, free: 3.207 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005212/0.2166, allocations: 453.3 kB / 434.9 MB, free: 2.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004689/0.217, allocations: 243.4 kB / 435.1 MB, free: 2.516 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.2172, allocations: 365.9 kB / 435.5 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001427/0.2186, allocations: 0.7574 MB / 436.2 MB, free: 1.395 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.2202, allocations: 1.009 MB / 437.2 MB, free: 300 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002951/0.2231, allocations: 1.865 MB / 439.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.2232, allocations: 4 kB / 439.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005464/0.2286, allocations: 2.757 MB / 441.8 MB, free: 11.56 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.2287, allocations: 8 kB / 441.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.2287, allocations: 8 kB / 441.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/0.2309, allocations: 0.7853 MB / 442.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.2321, allocations: 271.5 kB / 442.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/0.2458, allocations: 9.585 MB / 452.5 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001958/0.2479, allocations: 91.95 kB / 452.6 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003707/0.2483, allocations: 55.97 kB / 452.6 MB, free: 484 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.2778/0.5262, allocations: 0.7332 MB / 453.4 MB, free: 69.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001506/0.5277, allocations: 203.7 kB / 453.6 MB, free: 69.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007617/0.5353, allocations: 2.484 MB / 456.1 MB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.121e-05/0.5354, allocations: 16.31 kB / 456.1 MB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.211e-05/0.5355, allocations: 5.781 kB / 456.1 MB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3e-05/0.5355, allocations: 5.906 kB / 456.1 MB, free: 68.9 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01276/0.5483, allocations: 4.948 MB / 461 MB, free: 67.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/0.5483, allocations: 2.875 kB / 461 MB, free: 67.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.5494, allocations: 217.7 kB / 461.3 MB, free: 67.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/0.5515, allocations: 0.6456 MB / 461.9 MB, free: 67.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.5517, allocations: 34.34 kB / 461.9 MB, free: 67.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009032/0.5607, allocations: 8.692 MB / 470.6 MB, free: 61.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.5608, allocations: 2.75 kB / 470.6 MB, free: 61.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006259/0.567, allocations: 3.54 MB / 474.2 MB, free: 59.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.5683, allocations: 441.6 kB / 474.6 MB, free: 59.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.5686, allocations: 35.62 kB / 474.6 MB, free: 59.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001029/0.5696, allocations: 84.83 kB / 474.7 MB, free: 59.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003524/0.57, allocations: 100.1 kB / 474.8 MB, free: 59.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-05/0.5701, allocations: 39.62 kB / 474.8 MB, free: 59.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0021/0.5722, allocations: 1.517 MB / 476.4 MB, free: 58.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5722, allocations: 3.719 kB / 476.4 MB, free: 58.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002013/0.5742, allocations: 0.5258 MB / 476.9 MB, free: 58.61 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.001248/0.5755, allocations: 453.8 kB / 477.3 MB, free: 58.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003899/0.5794, allocations: 2.388 MB / 479.7 MB, free: 57.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5794, allocations: 2.562 kB / 479.7 MB, free: 57.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002166/0.5816, allocations: 1.59 MB / 481.3 MB, free: 55.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.5838, allocations: 472 kB / 481.8 MB, free: 55.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007085/0.5909, allocations: 5.12 MB / 486.9 MB, free: 50.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.5922, allocations: 1.958 MB / 488.9 MB, free: 48.11 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001135/0.5933, allocations: 383.7 kB / 489.2 MB, free: 47.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.5937, allocations: 127.4 kB / 489.4 MB, free: 47.61 MB / 382.1 MB Notification: Performance of SimCode: time 9.12e-07/0.5937, allocations: 0 / 489.4 MB, free: 47.61 MB / 382.1 MB Notification: Performance of Templates: time 0.04919/0.6429, allocations: 30.57 MB / 0.5077 GB, free: 17.01 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)