Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001302/0.001302, allocations: 113.9 kB / 17.06 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.001499/0.001499, allocations: 200 kB / 18 MB, free: 5.082 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.712/1.712, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001361/0.001361, allocations: 43.94 kB / 327.9 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 46.62 MB / 374.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.3251/0.4488, allocations: 9.6 MB / 384.1 MB, free: 8.137 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009798/0.4587, allocations: 3.485 MB / 387.6 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002768/0.4615, allocations: 41.78 kB / 387.6 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003577/0.4652, allocations: 0.6669 MB / 388.3 MB, free: 5.785 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.006475/0.4717, allocations: 0.8273 MB / 389.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002587/0.4743, allocations: 459.7 kB / 389.6 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00771/0.482, allocations: 2.671 MB / 392.3 MB, free: 3.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004692/0.4868, allocations: 1.813 MB / 394.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003737/0.4906, allocations: 1.19 MB / 395.3 MB, free: 2.348 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005847/0.4965, allocations: 1.497 MB / 396.8 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001705/0.4983, allocations: 305.7 kB / 397.1 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003305/0.5016, allocations: 0.5574 MB / 397.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002162/0.5038, allocations: 1.029 MB / 398.6 MB, free: 1.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00421/0.5081, allocations: 1.482 MB / 400.1 MB, free: 68 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009347/0.5174, allocations: 4.288 MB / 404.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.678e-06/0.5175, allocations: 1.094 kB / 404.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.669e-06/0.5175, allocations: 0 / 404.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002221/0.5178, allocations: 7.938 kB / 404.4 MB, free: 13.61 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.01187/0.5296, allocations: 3.146 MB / 407.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.5297, allocations: 14.08 kB / 407.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001557/0.5313, allocations: 321.5 kB / 407.9 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005136/0.5364, allocations: 1.613 MB / 409.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002179/0.5367, allocations: 158.4 kB / 409.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007433/0.5374, allocations: 208.1 kB / 409.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007102/0.5445, allocations: 2.693 MB / 412.6 MB, free: 8.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.311e-05/0.5447, allocations: 9.922 kB / 412.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/0.545, allocations: 86.5 kB / 412.7 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.5452, allocations: 93.12 kB / 412.7 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006933/0.5521, allocations: 2.283 MB / 415 MB, free: 6.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02185/0.574, allocations: 8.13 MB / 423.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003364/0.5775, allocations: 1.642 MB / 424.8 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002157/0.5797, allocations: 1.093 MB / 425.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002802/0.58, allocations: 131.2 kB / 426 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.062e-05/0.58, allocations: 55.44 kB / 426.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=116): time 4.087e-06/0.58, allocations: 0 / 426.1 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=132): time 0.015/0.595, allocations: 6.209 MB / 432.3 MB, free: 5.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.5952, allocations: 64.72 kB / 432.3 MB, free: 5.141 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003616/0.5988, allocations: 2.156 MB / 434.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003468/0.5992, allocations: 45.7 kB / 434.5 MB, free: 2.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.6003, allocations: 1.108 MB / 435.7 MB, free: 1.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006223/0.6009, allocations: 453.4 kB / 436.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004743/0.6014, allocations: 243.4 kB / 436.3 MB, free: 1.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000174/0.6016, allocations: 361.9 kB / 436.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.603, allocations: 0.7574 MB / 437.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.6045, allocations: 1.013 MB / 438.5 MB, free: 14.85 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003013/0.6076, allocations: 1.857 MB / 440.3 MB, free: 12.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.6076, allocations: 3.938 kB / 440.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005799/0.6134, allocations: 2.761 MB / 443.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.395e-05/0.6135, allocations: 8 kB / 443.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.6135, allocations: 8 kB / 443.1 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002133/0.6156, allocations: 0.7853 MB / 443.9 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.6169, allocations: 275.5 kB / 444.2 MB, free: 9.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01365/0.6306, allocations: 9.589 MB / 453.7 MB, free: 15.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002315/0.633, allocations: 87.89 kB / 453.8 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003697/0.6334, allocations: 63.91 kB / 453.9 MB, free: 15.02 MB / 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.002519/0.6359, allocations: 0.7355 MB / 454.6 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009571/0.6369, allocations: 205.4 kB / 454.8 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005572/0.6425, allocations: 2.477 MB / 457.3 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.184e-05/0.6426, allocations: 19.98 kB / 457.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.6426, allocations: 7.938 kB / 457.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/0.6426, allocations: 11.92 kB / 457.3 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.6553, allocations: 4.933 MB / 462.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/0.6554, allocations: 0 / 462.3 MB, free: 6.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.6565, allocations: 219.6 kB / 462.5 MB, free: 6.293 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001901/0.6584, allocations: 0.6488 MB / 463.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001426/0.6586, allocations: 31.98 kB / 463.2 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/0.6688, allocations: 8.706 MB / 471.9 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.6689, allocations: 4.031 kB / 471.9 MB, free: 12.47 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00706/0.6759, allocations: 3.544 MB / 475.4 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/0.6778, allocations: 438.5 kB / 475.9 MB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004355/0.6783, allocations: 28 kB / 475.9 MB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001088/0.6794, allocations: 83.89 kB / 476 MB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004178/0.6798, allocations: 104.8 kB / 476.1 MB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.6799, allocations: 43.92 kB / 476.1 MB, free: 8.172 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002805/0.6828, allocations: 1.515 MB / 477.6 MB, free: 6.633 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6828, allocations: 0 / 477.6 MB, free: 6.633 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003018/0.6858, allocations: 0.5274 MB / 478.1 MB, free: 6.105 MB / 398.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.0016/0.6874, allocations: 468.7 kB / 478.6 MB, free: 5.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005262/0.6927, allocations: 2.385 MB / 481 MB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.6928, allocations: 0 / 481 MB, free: 3.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003074/0.6958, allocations: 1.593 MB / 482.6 MB, free: 1.586 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003157/0.699, allocations: 450.1 kB / 483 MB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/0.7107, allocations: 5.125 MB / 488.1 MB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00253/0.7133, allocations: 1.955 MB / 490.1 MB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00194/0.7153, allocations: 379.7 kB / 490.5 MB, free: 9.598 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005053/0.7158, allocations: 135.4 kB / 490.6 MB, free: 9.465 MB / 414.1 MB Notification: Performance of SimCode: time 1.884e-06/0.7158, allocations: 0 / 490.6 MB, free: 9.465 MB / 414.1 MB Notification: Performance of Templates: time 0.06537/0.7812, allocations: 31.23 MB / 0.5096 GB, free: 10.17 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)