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.01155/0.01155, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001813/0.001813, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.948/1.948, allocations: 205.1 MB / 222.5 MB, free: 4.383 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.001229/0.001229, allocations: 50.02 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1408, 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.01483/0.1557, allocations: 9.611 MB / 382.8 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009059/0.1648, allocations: 3.479 MB / 386.3 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.1672, allocations: 39.81 kB / 386.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003504/0.1708, allocations: 0.7027 MB / 387 MB, free: 3.375 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.005388/0.1762, allocations: 0.87 MB / 387.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00193/0.1782, allocations: 451.2 kB / 388.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004929/0.1831, allocations: 2.67 MB / 391 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002595/0.1857, allocations: 1.822 MB / 392.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.1881, allocations: 1.187 MB / 394 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.1914, allocations: 1.495 MB / 395.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009285/0.1923, allocations: 308 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001917/0.1943, allocations: 0.5542 MB / 396.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.1956, allocations: 1.028 MB / 397.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00261/0.1982, allocations: 1.481 MB / 398.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006342/0.2046, allocations: 4.283 MB / 403.2 MB, free: 3.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.2046, allocations: 7.938 kB / 403.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.2046, allocations: 0 / 403.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001807/0.2048, allocations: 0 / 403.2 MB, free: 3.133 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.01025/0.2151, allocations: 3.153 MB / 406.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.315e-05/0.2152, allocations: 15.89 kB / 406.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001084/0.2163, allocations: 325.2 kB / 406.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004609/0.2209, allocations: 1.607 MB / 408.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.2211, allocations: 163.9 kB / 408.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005789/0.2217, allocations: 203.9 kB / 408.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006204/0.2279, allocations: 2.69 MB / 411.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.975e-05/0.2281, allocations: 7.906 kB / 411.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002072/0.2283, allocations: 83.98 kB / 411.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001457/0.2284, allocations: 99.92 kB / 411.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004646/0.2331, allocations: 2.28 MB / 413.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0162/0.2493, allocations: 8.138 MB / 421.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00325/0.2526, allocations: 1.63 MB / 423.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002067/0.2547, allocations: 1.11 MB / 424.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.255, allocations: 126.1 kB / 424.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.2551, allocations: 51.44 kB / 424.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 3.517e-06/0.2551, allocations: 0 / 424.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01455/0.2697, allocations: 6.201 MB / 431 MB, free: 6.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.2698, allocations: 64.72 kB / 431.1 MB, free: 6.586 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/0.2737, allocations: 2.156 MB / 433.3 MB, free: 4.383 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003144/0.2741, allocations: 49.7 kB / 433.3 MB, free: 4.328 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009892/0.2751, allocations: 1.1 MB / 434.4 MB, free: 3.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005792/0.2756, allocations: 465.2 kB / 434.9 MB, free: 2.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004315/0.2761, allocations: 247.4 kB / 435.1 MB, free: 2.508 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.2763, allocations: 361.9 kB / 435.5 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001467/0.2777, allocations: 0.7574 MB / 436.2 MB, free: 1.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001572/0.2793, allocations: 1.009 MB / 437.2 MB, free: 296 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003215/0.2826, allocations: 1.861 MB / 439.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.2826, allocations: 4 kB / 439.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006334/0.2889, allocations: 2.761 MB / 441.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.289, allocations: 8 kB / 441.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.2891, allocations: 4 kB / 441.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002216/0.2913, allocations: 0.7853 MB / 442.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.2926, allocations: 271.5 kB / 442.9 MB, free: 10.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01457/0.3072, allocations: 9.585 MB / 452.5 MB, free: 0.6172 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.3094, allocations: 91.89 kB / 452.6 MB, free: 0.5273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002824/0.3097, 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.2441/0.5538, allocations: 0.737 MB / 453.4 MB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00121/0.5551, allocations: 205.2 kB / 453.6 MB, free: 69.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00699/0.5621, allocations: 2.479 MB / 456.1 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.862e-05/0.5622, allocations: 16.22 kB / 456.1 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.18e-05/0.5622, allocations: 6.531 kB / 456.1 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.721e-05/0.5622, allocations: 6.328 kB / 456.1 MB, free: 68.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/0.5747, allocations: 4.949 MB / 461 MB, free: 67.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/0.5748, allocations: 7.078 kB / 461 MB, free: 67.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.5759, allocations: 212 kB / 461.2 MB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002142/0.578, allocations: 0.6435 MB / 461.9 MB, free: 67.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001269/0.5782, allocations: 36.14 kB / 461.9 MB, free: 67.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008416/0.5866, allocations: 8.701 MB / 470.6 MB, free: 61.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5866, allocations: 2.5 kB / 470.6 MB, free: 61.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006381/0.593, allocations: 3.533 MB / 474.2 MB, free: 59.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008715/0.5939, allocations: 442.1 kB / 474.6 MB, free: 59.59 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002314/0.5942, allocations: 31.53 kB / 474.6 MB, free: 59.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009065/0.5951, allocations: 87.72 kB / 474.7 MB, free: 59.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002816/0.5954, allocations: 99.41 kB / 474.8 MB, free: 59.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/0.5955, allocations: 42.42 kB / 474.8 MB, free: 59.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00182/0.5973, allocations: 1.517 MB / 476.4 MB, free: 58.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5973, allocations: 3.719 kB / 476.4 MB, free: 58.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001608/0.5989, allocations: 0.5237 MB / 476.9 MB, free: 58.71 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.001023/0.5999, allocations: 464.1 kB / 477.3 MB, free: 58.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003696/0.6037, allocations: 2.385 MB / 479.7 MB, free: 57.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.229e-06/0.6037, allocations: 3.812 kB / 479.7 MB, free: 57.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002104/0.6058, allocations: 1.59 MB / 481.3 MB, free: 55.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002598/0.6084, allocations: 468 kB / 481.8 MB, free: 55.26 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007486/0.6159, allocations: 5.124 MB / 486.9 MB, free: 50.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001256/0.6172, allocations: 1.943 MB / 488.8 MB, free: 48.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.6183, allocations: 395.7 kB / 489.2 MB, free: 47.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.6187, allocations: 131.4 kB / 489.4 MB, free: 47.63 MB / 382.1 MB Notification: Performance of SimCode: time 9.32e-07/0.6187, allocations: 0 / 489.4 MB, free: 47.63 MB / 382.1 MB Notification: Performance of Templates: time 0.04742/0.6661, allocations: 30.56 MB / 0.5077 GB, free: 17.05 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)