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.001407/0.001407, allocations: 108 kB / 15.61 MB, free: 152 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.0017/0.0017, allocations: 193.6 kB / 16.53 MB, free: 6.664 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.717/1.717, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.00133/0.00133, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3031/0.3045, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01401/0.3185, allocations: 9.61 MB / 334.9 MB, free: 10.26 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.3287, allocations: 3.477 MB / 338.4 MB, free: 6.785 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002945/0.3317, allocations: 43.81 kB / 338.5 MB, free: 6.742 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002359/0.3341, allocations: 0.6636 MB / 339.1 MB, free: 6.074 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.0033/0.3375, allocations: 0.8271 MB / 339.9 MB, free: 5.242 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001193/0.3387, allocations: 451.3 kB / 340.4 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003426/0.3421, allocations: 2.658 MB / 343 MB, free: 2.129 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002137/0.3442, allocations: 1.822 MB / 344.9 MB, free: 268 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.3461, allocations: 1.172 MB / 346 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00196/0.3481, allocations: 1.553 MB / 347.6 MB, free: 13.53 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004054/0.3485, allocations: 304 kB / 347.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001085/0.3496, allocations: 0.5542 MB / 348.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000904/0.3505, allocations: 0.9856 MB / 349.4 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.352, allocations: 1.485 MB / 350.9 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003891/0.3559, allocations: 4.229 MB / 355.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.543e-06/0.3559, allocations: 0 / 355.1 MB, free: 5.953 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.596e-06/0.3559, allocations: 8 kB / 355.1 MB, free: 5.945 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.122e-05/0.356, allocations: 0 / 355.1 MB, free: 5.945 MB / 286.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.005972/0.362, allocations: 3.146 MB / 358.3 MB, free: 2.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.362, allocations: 15.89 kB / 358.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007585/0.3628, allocations: 325.2 kB / 358.6 MB, free: 2.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002272/0.3651, allocations: 1.599 MB / 360.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/0.3652, allocations: 155.9 kB / 360.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002879/0.3655, allocations: 211.9 kB / 360.6 MB, free: 388 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004277/0.3698, allocations: 2.69 MB / 363.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.826e-05/0.3699, allocations: 8 kB / 363.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001837/0.3701, allocations: 83.98 kB / 363.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.3702, allocations: 95.94 kB / 363.5 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003809/0.374, allocations: 2.276 MB / 365.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.3887, allocations: 8.247 MB / 374 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003675/0.3924, allocations: 1.626 MB / 375.6 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00204/0.3945, allocations: 1.082 MB / 376.7 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.3948, allocations: 122.1 kB / 376.8 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.683e-05/0.3948, allocations: 47.5 kB / 376.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.667e-06/0.3949, allocations: 4 kB / 376.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01519/0.41, allocations: 6.21 MB / 383.1 MB, free: 9.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.4101, allocations: 68.72 kB / 383.1 MB, free: 9.332 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003868/0.414, allocations: 2.16 MB / 385.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002114/0.4143, allocations: 53.69 kB / 385.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000957/0.4152, allocations: 1.096 MB / 386.4 MB, free: 5.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005154/0.4157, allocations: 465.2 kB / 386.9 MB, free: 5.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00052/0.4163, allocations: 239.5 kB / 387.1 MB, free: 5.254 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000187/0.4165, allocations: 357.9 kB / 387.5 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.4179, allocations: 0.7613 MB / 388.2 MB, free: 4.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001546/0.4195, allocations: 1.009 MB / 389.3 MB, free: 3.039 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002941/0.4224, allocations: 1.857 MB / 391.1 MB, free: 1.094 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/0.4225, allocations: 8 kB / 391.1 MB, free: 1.086 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005596/0.4281, allocations: 2.761 MB / 393.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.945e-05/0.4281, allocations: 8.25 kB / 393.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/0.4281, allocations: 8 kB / 393.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002125/0.4303, allocations: 0.7886 MB / 394.7 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00122/0.4315, allocations: 275.5 kB / 395 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01336/0.4449, allocations: 9.596 MB / 404.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.4466, allocations: 91.89 kB / 404.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002598/0.4469, allocations: 51.98 kB / 404.7 MB, free: 3.207 MB / 334.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.00172/0.4486, allocations: 0.7434 MB / 405.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/0.4493, allocations: 205.4 kB / 405.6 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005173/0.4545, allocations: 2.484 MB / 408.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.859e-05/0.4546, allocations: 16 kB / 408.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.01e-05/0.4546, allocations: 4 kB / 408.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.367e-05/0.4546, allocations: 11.91 kB / 408.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01113/0.4658, allocations: 4.944 MB / 413.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.4658, allocations: 3.938 kB / 413.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001048/0.4669, allocations: 215.7 kB / 413.3 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/0.4689, allocations: 0.6628 MB / 414 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/0.4691, allocations: 35.97 kB / 414 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01109/0.4802, allocations: 8.7 MB / 422.7 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4802, allocations: 4.031 kB / 422.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007249/0.4875, allocations: 3.526 MB / 426.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/0.4888, allocations: 438.5 kB / 426.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006236/0.4895, allocations: 35.97 kB / 426.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001398/0.4909, allocations: 83.97 kB / 426.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003374/0.4912, allocations: 104.8 kB / 426.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001071/0.4913, allocations: 35.98 kB / 426.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0029/0.4942, allocations: 1.527 MB / 428.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4943, allocations: 0 / 428.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002397/0.4967, allocations: 0.5195 MB / 429 MB, free: 10.27 MB / 366.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.001282/0.498, allocations: 463.3 kB / 429.4 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005919/0.5039, allocations: 2.864 MB / 432.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.156e-06/0.5039, allocations: 0 / 432.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00278/0.5067, allocations: 1.606 MB / 433.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/0.5097, allocations: 454.1 kB / 434.3 MB, free: 4.812 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01045/0.5201, allocations: 5.164 MB / 439.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002418/0.5226, allocations: 1.951 MB / 441.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001601/0.5242, allocations: 379.7 kB / 441.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005454/0.5248, allocations: 131.4 kB / 441.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of SimCode: time 1.342e-06/0.5248, allocations: 0 / 441.9 MB, free: 13.11 MB / 382.1 MB Notification: Performance of Templates: time 0.2326/0.7574, allocations: 30.14 MB / 472.1 MB, free: 104 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)