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.001678/0.001678, allocations: 107.1 kB / 16.92 MB, free: 6.145 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.001882/0.001882, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.789/1.789, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001396/0.001397, allocations: 47.94 kB / 280 MB, free: 3.156 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1356, allocations: 46.63 MB / 326.6 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.0143/0.15, allocations: 9.603 MB / 336.2 MB, free: 10.8 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007939/0.158, allocations: 3.48 MB / 339.7 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002116/0.1601, allocations: 43.81 kB / 339.8 MB, free: 7.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002564/0.1628, allocations: 0.6637 MB / 340.4 MB, free: 6.594 MB / 286.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.003872/0.1667, allocations: 0.8271 MB / 341.3 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.1683, allocations: 447.3 kB / 341.7 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005436/0.1737, allocations: 2.662 MB / 344.3 MB, free: 2.648 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003388/0.1771, allocations: 1.833 MB / 346.2 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002828/0.18, allocations: 1.168 MB / 347.4 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00367/0.1837, allocations: 1.553 MB / 348.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001192/0.1849, allocations: 308 kB / 349.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002509/0.1875, allocations: 0.5503 MB / 349.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001611/0.1891, allocations: 0.9856 MB / 350.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002563/0.1917, allocations: 1.481 MB / 352.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005717/0.1974, allocations: 4.229 MB / 356.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.1975, allocations: 4 kB / 356.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.135e-06/0.1975, allocations: 0 / 356.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001665/0.1977, allocations: 0 / 356.5 MB, free: 6.465 MB / 302.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.009048/0.2067, allocations: 3.146 MB / 359.6 MB, free: 3.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.033e-05/0.2068, allocations: 15.89 kB / 359.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001009/0.2078, allocations: 329.2 kB / 359.9 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.2112, allocations: 1.607 MB / 361.5 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001628/0.2114, allocations: 155.9 kB / 361.7 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003899/0.2118, allocations: 203.9 kB / 361.9 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00594/0.2177, allocations: 2.69 MB / 364.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.579e-05/0.2178, allocations: 8 kB / 364.6 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002261/0.2181, allocations: 79.98 kB / 364.7 MB, free: 14.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001563/0.2182, allocations: 103.9 kB / 364.8 MB, free: 13.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004571/0.2228, allocations: 2.28 MB / 367.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01727/0.2401, allocations: 8.228 MB / 375.3 MB, free: 3.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003136/0.2433, allocations: 1.634 MB / 376.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002029/0.2454, allocations: 1.079 MB / 378 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002847/0.2457, allocations: 134 kB / 378.1 MB, free: 304 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.2457, allocations: 47.5 kB / 378.2 MB, free: 248 kB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 4.348e-06/0.2457, allocations: 0 / 378.2 MB, free: 248 kB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.2893/0.5351, allocations: 6.198 MB / 384.4 MB, free: 50.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.5352, allocations: 64.66 kB / 384.4 MB, free: 49.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004922/0.5401, allocations: 2.159 MB / 386.6 MB, free: 49.19 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003262/0.5405, allocations: 47.02 kB / 386.6 MB, free: 49.14 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001189/0.5417, allocations: 1.109 MB / 387.7 MB, free: 48.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008809/0.5426, allocations: 460.2 kB / 388.2 MB, free: 47.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005934/0.5432, allocations: 239.7 kB / 388.4 MB, free: 47.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002009/0.5434, allocations: 360.6 kB / 388.8 MB, free: 47.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001648/0.5451, allocations: 0.7599 MB / 389.5 MB, free: 47.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.5467, allocations: 1.012 MB / 390.6 MB, free: 46.71 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002741/0.5494, allocations: 1.862 MB / 392.4 MB, free: 45.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.5495, allocations: 1.844 kB / 392.4 MB, free: 45.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006448/0.5559, allocations: 2.764 MB / 395.2 MB, free: 44.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.749e-05/0.556, allocations: 7.875 kB / 395.2 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.604e-05/0.5561, allocations: 7.812 kB / 395.2 MB, free: 44.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/0.5583, allocations: 0.7884 MB / 396 MB, free: 44.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001183/0.5595, allocations: 271.9 kB / 396.3 MB, free: 44.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/0.5701, allocations: 9.606 MB / 405.9 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00196/0.5721, allocations: 91.89 kB / 405.9 MB, free: 36.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002098/0.5724, allocations: 51.98 kB / 406 MB, free: 36.11 MB / 318.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.001516/0.5739, allocations: 0.7434 MB / 406.7 MB, free: 35.36 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005806/0.5745, allocations: 201.5 kB / 406.9 MB, free: 35.16 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004032/0.5785, allocations: 2.48 MB / 409.4 MB, free: 32.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.5786, allocations: 12 kB / 409.4 MB, free: 32.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.5786, allocations: 11.94 kB / 409.4 MB, free: 32.63 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.265e-05/0.5786, allocations: 3.984 kB / 409.4 MB, free: 32.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008162/0.5868, allocations: 4.959 MB / 414.4 MB, free: 27.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/0.5869, allocations: 7.984 kB / 414.4 MB, free: 27.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009538/0.5878, allocations: 211.7 kB / 414.6 MB, free: 27.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001602/0.5894, allocations: 0.6482 MB / 415.3 MB, free: 26.74 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001008/0.5895, allocations: 39.56 kB / 415.3 MB, free: 26.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007362/0.5969, allocations: 8.704 MB / 424 MB, free: 17.62 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.597, allocations: 3.938 kB / 424 MB, free: 17.62 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006468/0.6035, allocations: 3.534 MB / 427.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001567/0.6051, allocations: 452.9 kB / 428 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.6054, allocations: 24 kB / 428 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009943/0.6064, allocations: 83.89 kB / 428.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.6067, allocations: 108.8 kB / 428.2 MB, free: 13.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-05/0.6068, allocations: 35.98 kB / 428.2 MB, free: 13.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001939/0.6088, allocations: 1.519 MB / 429.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6088, allocations: 0 / 429.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002316/0.6111, allocations: 0.5282 MB / 430.3 MB, free: 11.27 MB / 318.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.001366/0.6125, allocations: 468.7 kB / 430.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005559/0.6181, allocations: 2.858 MB / 433.6 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.222e-05/0.6181, allocations: 5.25 kB / 433.6 MB, free: 7.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/0.6205, allocations: 1.594 MB / 435.2 MB, free: 6.328 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.6233, allocations: 450.1 kB / 435.6 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009938/0.6333, allocations: 5.172 MB / 440.8 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002372/0.6357, allocations: 1.954 MB / 442.8 MB, free: 14.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001767/0.6375, allocations: 387.7 kB / 443.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.6379, allocations: 131.4 kB / 443.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of SimCode: time 1.843e-06/0.638, allocations: 0 / 443.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Templates: time 0.0572/0.6952, allocations: 30.12 MB / 473.4 MB, free: 36 kB / 350.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)