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.01053/0.01053, allocations: 101 kB / 15.73 MB, free: 6.473 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.001728/0.001728, allocations: 195 kB / 16.67 MB, free: 6.379 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.803/1.803, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.001281/0.001282, allocations: 50.42 kB / 326.6 MB, free: 14.25 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1305, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01362/0.1442, allocations: 9.615 MB / 382.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009416/0.1537, allocations: 3.475 MB / 386.3 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002835/0.1566, allocations: 39.88 kB / 386.3 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003218/0.1599, allocations: 0.6676 MB / 387 MB, free: 3.441 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.004724/0.1647, allocations: 0.831 MB / 387.8 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.1664, allocations: 451.3 kB / 388.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005149/0.1716, allocations: 2.67 MB / 390.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002657/0.1742, allocations: 1.814 MB / 392.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002789/0.1771, allocations: 1.18 MB / 393.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00327/0.1803, allocations: 1.498 MB / 395.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006903/0.181, allocations: 304 kB / 395.7 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00143/0.1825, allocations: 0.5659 MB / 396.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.1839, allocations: 1.017 MB / 397.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002305/0.1862, allocations: 1.485 MB / 398.8 MB, free: 7.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006463/0.1927, allocations: 4.287 MB / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.1928, allocations: 0 / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.1928, allocations: 0 / 403.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001734/0.193, allocations: 0 / 403.1 MB, free: 3.254 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.008108/0.2011, allocations: 3.157 MB / 406.2 MB, free: 28 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.089e-05/0.2012, allocations: 11.89 kB / 406.3 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001/0.2022, allocations: 329.4 kB / 406.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002979/0.2052, allocations: 1.607 MB / 408.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.2054, allocations: 152 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000351/0.2057, allocations: 207.9 kB / 408.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004902/0.2106, allocations: 2.698 MB / 411.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-05/0.2107, allocations: 7.906 kB / 411.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002039/0.2109, allocations: 83.94 kB / 411.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.211, allocations: 95.88 kB / 411.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004063/0.2151, allocations: 2.276 MB / 413.7 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01503/0.2302, allocations: 8.142 MB / 421.8 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00326/0.2335, allocations: 1.639 MB / 423.5 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002027/0.2356, allocations: 1.104 MB / 424.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002744/0.2359, allocations: 126 kB / 424.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.09e-05/0.2359, allocations: 51.5 kB / 424.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=116): time 4.729e-06/0.236, allocations: 0 / 424.8 MB, free: 13.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01442/0.2504, allocations: 6.197 MB / 431 MB, free: 6.777 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.967e-05/0.2505, allocations: 64.72 kB / 431 MB, free: 6.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004684/0.2552, allocations: 2.156 MB / 433.2 MB, free: 4.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003191/0.2555, allocations: 49.64 kB / 433.2 MB, free: 4.445 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.2567, allocations: 1.108 MB / 434.3 MB, free: 3.324 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007226/0.2575, allocations: 457.3 kB / 434.8 MB, free: 2.871 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005703/0.2581, allocations: 247.4 kB / 435 MB, free: 2.625 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.2583, allocations: 361.9 kB / 435.4 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001591/0.2599, allocations: 0.7574 MB / 436.1 MB, free: 1.508 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.2616, allocations: 1.009 MB / 437.1 MB, free: 416 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003209/0.2648, allocations: 1.873 MB / 439 MB, free: 14.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.2649, allocations: 0 / 439 MB, free: 14.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006051/0.2709, allocations: 2.753 MB / 441.8 MB, free: 11.67 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.994e-05/0.271, allocations: 8 kB / 441.8 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/0.271, allocations: 11.94 kB / 441.8 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002301/0.2733, allocations: 0.7853 MB / 442.6 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.2745, allocations: 267.6 kB / 442.8 MB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/0.2881, allocations: 9.585 MB / 452.4 MB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.29, allocations: 95.88 kB / 452.5 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002912/0.2903, allocations: 51.98 kB / 452.6 MB, free: 0.5859 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.2895/0.5798, allocations: 0.7334 MB / 453.3 MB, free: 69.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008575/0.5807, allocations: 211 kB / 453.5 MB, free: 69.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006447/0.5872, allocations: 2.475 MB / 456 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.14e-05/0.5872, allocations: 19.64 kB / 456 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.589e-05/0.5873, allocations: 5.25 kB / 456 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.393e-05/0.5873, allocations: 7.406 kB / 456 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01266/0.6, allocations: 4.939 MB / 460.9 MB, free: 67.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.821e-05/0.6001, allocations: 1 kB / 460.9 MB, free: 67.73 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.6012, allocations: 222.6 kB / 461.2 MB, free: 67.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001965/0.6032, allocations: 0.6488 MB / 461.8 MB, free: 67.54 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.6033, allocations: 34.72 kB / 461.8 MB, free: 67.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.6134, allocations: 8.702 MB / 470.5 MB, free: 61.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/0.6135, allocations: 1.094 kB / 470.5 MB, free: 61.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007873/0.6214, allocations: 3.531 MB / 474.1 MB, free: 59.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001559/0.623, allocations: 438.5 kB / 474.5 MB, free: 59.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003734/0.6234, allocations: 35.22 kB / 474.5 MB, free: 59.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.6246, allocations: 90.28 kB / 474.6 MB, free: 59.73 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004368/0.625, allocations: 100.2 kB / 474.7 MB, free: 59.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.6252, allocations: 43.42 kB / 474.8 MB, free: 59.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002207/0.6274, allocations: 1.519 MB / 476.3 MB, free: 58.88 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.6274, allocations: 0 / 476.3 MB, free: 58.88 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002338/0.6297, allocations: 0.5215 MB / 476.8 MB, free: 58.83 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.001401/0.6312, allocations: 466.9 kB / 477.3 MB, free: 58.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00433/0.6355, allocations: 2.388 MB / 479.7 MB, free: 57.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.6355, allocations: 0 / 479.7 MB, free: 57.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00238/0.6379, allocations: 1.592 MB / 481.2 MB, free: 55.85 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00244/0.6404, allocations: 469.9 kB / 481.7 MB, free: 55.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008128/0.6485, allocations: 5.113 MB / 486.8 MB, free: 50.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001359/0.6499, allocations: 1.951 MB / 488.8 MB, free: 48.29 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001303/0.6513, allocations: 391.7 kB / 489.1 MB, free: 47.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000345/0.6516, allocations: 131.4 kB / 489.3 MB, free: 47.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6516, allocations: 0 / 489.3 MB, free: 47.77 MB / 382.1 MB Notification: Performance of Templates: time 0.05243/0.7041, allocations: 30.56 MB / 0.5077 GB, free: 17.18 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)