Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001725/0.001725, 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.00163/0.00163, allocations: 196 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.766/1.766, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.00141/0.00141, allocations: 51.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2875, allocations: 46.63 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01278/0.3003, allocations: 9.607 MB / 334.9 MB, free: 10.26 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00888/0.3093, allocations: 3.481 MB / 338.4 MB, free: 6.801 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002647/0.312, allocations: 39.81 kB / 338.4 MB, free: 6.762 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002936/0.315, allocations: 0.6676 MB / 339.1 MB, free: 6.09 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.004216/0.3192, allocations: 0.8232 MB / 339.9 MB, free: 5.262 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.3212, allocations: 455.2 kB / 340.4 MB, free: 4.816 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005717/0.3269, allocations: 2.658 MB / 343 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003364/0.3303, allocations: 1.826 MB / 344.9 MB, free: 280 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0027/0.333, allocations: 1.172 MB / 346 MB, free: 15.1 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003313/0.3363, allocations: 1.553 MB / 347.6 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001249/0.3376, allocations: 308 kB / 347.9 MB, free: 13.24 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002395/0.34, allocations: 0.5542 MB / 348.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001744/0.3418, allocations: 0.9778 MB / 349.4 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004177/0.346, allocations: 1.485 MB / 350.9 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005409/0.3514, allocations: 4.233 MB / 355.1 MB, free: 5.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3514, allocations: 0 / 355.1 MB, free: 5.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3514, allocations: 0 / 355.1 MB, free: 5.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.303e-05/0.3515, allocations: 0 / 355.1 MB, free: 5.965 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.006829/0.3584, allocations: 3.15 MB / 358.3 MB, free: 2.746 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3584, allocations: 15.89 kB / 358.3 MB, free: 2.73 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008538/0.3593, allocations: 325.2 kB / 358.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002676/0.362, allocations: 1.603 MB / 360.2 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.3621, allocations: 156 kB / 360.4 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003005/0.3624, allocations: 203.9 kB / 360.6 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004509/0.3669, allocations: 2.698 MB / 363.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.922e-05/0.367, allocations: 4 kB / 363.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001902/0.3672, allocations: 80 kB / 363.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001198/0.3673, allocations: 95.92 kB / 363.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004011/0.3714, allocations: 2.276 MB / 365.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.3869, allocations: 8.239 MB / 374 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003985/0.391, allocations: 1.628 MB / 375.6 MB, free: 1.035 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002465/0.3935, allocations: 1.081 MB / 376.7 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003427/0.3939, allocations: 138 kB / 376.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.784e-05/0.394, allocations: 51.5 kB / 376.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.198e-06/0.394, allocations: 0 / 376.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01523/0.4093, allocations: 6.206 MB / 383.1 MB, free: 9.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.35e-05/0.4094, allocations: 64.72 kB / 383.1 MB, free: 9.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004971/0.4144, allocations: 2.164 MB / 385.3 MB, free: 7.141 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003251/0.4147, allocations: 45.7 kB / 385.3 MB, free: 7.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/0.4161, allocations: 1.108 MB / 386.4 MB, free: 5.969 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007412/0.4168, allocations: 457.2 kB / 386.9 MB, free: 5.516 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006122/0.4174, allocations: 243.5 kB / 387.1 MB, free: 5.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000181/0.4176, allocations: 357.9 kB / 387.5 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.4192, allocations: 0.7613 MB / 388.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001849/0.4211, allocations: 1.009 MB / 389.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003626/0.4247, allocations: 1.865 MB / 391.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.064e-05/0.4248, allocations: 0 / 391.1 MB, free: 1.102 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00649/0.4313, allocations: 2.757 MB / 393.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.269e-05/0.4314, allocations: 12.25 kB / 393.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.324e-05/0.4314, allocations: 8 kB / 393.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002272/0.4337, allocations: 0.7886 MB / 394.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.4349, allocations: 271.6 kB / 394.9 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01212/0.447, allocations: 9.6 MB / 404.5 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/0.4487, allocations: 91.89 kB / 404.6 MB, free: 3.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002175/0.4489, allocations: 51.98 kB / 404.7 MB, free: 3.227 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.001376/0.4503, allocations: 0.7357 MB / 405.4 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005771/0.4509, allocations: 209.4 kB / 405.6 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004554/0.4555, allocations: 2.484 MB / 408.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.4555, allocations: 19.94 kB / 408.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.991e-05/0.4555, allocations: 7.984 kB / 408.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.414e-05/0.4556, allocations: 7.922 kB / 408.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009146/0.4647, allocations: 4.94 MB / 413.1 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.4647, allocations: 3.938 kB / 413.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001001/0.4658, allocations: 215.7 kB / 413.3 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001715/0.4675, allocations: 0.6628 MB / 414 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001159/0.4676, allocations: 35.97 kB / 414 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009187/0.4768, allocations: 8.697 MB / 422.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4769, allocations: 4.031 kB / 422.7 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006401/0.4833, allocations: 3.534 MB / 426.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.4845, allocations: 434.5 kB / 426.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005376/0.485, allocations: 31.98 kB / 426.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.4863, allocations: 87.95 kB / 426.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003121/0.4866, allocations: 104.8 kB / 426.9 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001184/0.4868, allocations: 35.98 kB / 426.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002587/0.4894, allocations: 1.527 MB / 428.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4894, allocations: 0 / 428.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002351/0.4917, allocations: 0.5234 MB / 429 MB, free: 10.3 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.001257/0.493, allocations: 468.1 kB / 429.4 MB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005714/0.4987, allocations: 2.86 MB / 432.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.881e-06/0.4988, allocations: 1.25 kB / 432.3 MB, free: 6.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002592/0.5013, allocations: 1.601 MB / 433.9 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002613/0.504, allocations: 454.2 kB / 434.3 MB, free: 4.844 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00986/0.5139, allocations: 5.16 MB / 439.5 MB, free: 15.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.5161, allocations: 1.959 MB / 441.4 MB, free: 13.63 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001469/0.5176, allocations: 387.7 kB / 441.8 MB, free: 13.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.518, allocations: 127.4 kB / 442 MB, free: 13.12 MB / 382.1 MB Notification: Performance of SimCode: time 1.673e-06/0.5181, allocations: 0 / 442 MB, free: 13.12 MB / 382.1 MB Notification: Performance of Templates: time 0.2346/0.7527, allocations: 30.13 MB / 472.1 MB, free: 104 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)