Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008732/0.0008733, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007117/0.007118, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.384/1.384, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0005106/0.0005106, allocations: 12.38 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2345, allocations: 47.59 MB / 327 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01295/0.2475, allocations: 12.86 MB / 339.9 MB, free: 6.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008696/0.2562, allocations: 4.406 MB / 344.3 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.2583, allocations: 67.69 kB / 344.4 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.2608, allocations: 0.9094 MB / 345.3 MB, free: 1.082 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003662/0.2645, allocations: 1.248 MB / 346.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001875/0.2663, allocations: 0.8421 MB / 347.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006/0.2724, allocations: 5.091 MB / 352.5 MB, free: 9.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003466/0.2758, allocations: 3.003 MB / 355.5 MB, free: 6.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002089/0.2779, allocations: 1.513 MB / 357 MB, free: 5.281 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002378/0.2803, allocations: 2.003 MB / 359 MB, free: 3.27 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004078/0.2808, allocations: 240 kB / 359.2 MB, free: 3.035 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001069/0.2818, allocations: 447.7 kB / 359.6 MB, free: 2.598 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007536/0.2826, allocations: 0.9222 MB / 360.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.2846, allocations: 2.034 MB / 362.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00649/0.2911, allocations: 7.245 MB / 369.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2912, allocations: 0 / 369.9 MB, free: 8.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.2912, allocations: 4 kB / 369.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001528/0.2913, allocations: 0 / 369.9 MB, free: 8.348 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01026/0.3016, allocations: 4.265 MB / 374.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.3017, allocations: 12.03 kB / 374.1 MB, free: 4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004746/0.3064, allocations: 0.878 MB / 375 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004638/0.3111, allocations: 2.581 MB / 377.6 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001993/0.3113, allocations: 267.6 kB / 377.9 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007096/0.312, allocations: 367.9 kB / 378.2 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009583/0.3216, allocations: 5.044 MB / 383.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.435e-05/0.3217, allocations: 3.984 kB / 383.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003422/0.3221, allocations: 152 kB / 383.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3222, allocations: 159.2 kB / 383.6 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008086/0.3303, allocations: 4.408 MB / 388 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02315/0.3535, allocations: 16 MB / 404 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006872/0.3604, allocations: 7.784 MB / 411.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/0.3629, allocations: 1.737 MB / 413.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006978/0.3699, allocations: 4.667 MB / 418.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.37, allocations: 51.88 kB / 418.2 MB, free: 6.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.276e-06/0.37, allocations: 7.938 kB / 418.2 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01606/0.386, allocations: 8.221 MB / 426.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.706e-05/0.3861, allocations: 68.72 kB / 426.5 MB, free: 13.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002893/0.389, allocations: 2.151 MB / 428.7 MB, free: 11.71 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001352/0.3891, allocations: 57.7 kB / 428.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001006/0.3902, allocations: 1.612 MB / 430.3 MB, free: 10.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004068/0.3906, allocations: 0.5546 MB / 430.9 MB, free: 9.453 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002127/0.3908, allocations: 161.6 kB / 431 MB, free: 9.289 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.049e-05/0.3909, allocations: 305.1 kB / 431.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001472/0.3924, allocations: 0.9642 MB / 432.3 MB, free: 8.023 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.3941, allocations: 1.465 MB / 433.8 MB, free: 6.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003312/0.3975, allocations: 2.534 MB / 436.3 MB, free: 3.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.3975, allocations: 4 kB / 436.3 MB, free: 3.598 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005333/0.4028, allocations: 3.379 MB / 439.7 MB, free: 176 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.4029, allocations: 12 kB / 439.7 MB, free: 164 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.358e-05/0.4029, allocations: 16 kB / 439.7 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.4047, allocations: 0.7355 MB / 440.4 MB, free: 15.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00131/0.406, allocations: 375.4 kB / 440.8 MB, free: 15.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01028/0.4163, allocations: 10.42 MB / 451.2 MB, free: 4.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.418, allocations: 95.95 kB / 451.3 MB, free: 3.973 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/0.4182, allocations: 75.98 kB / 451.4 MB, free: 3.898 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002073/0.4203, allocations: 1.215 MB / 452.6 MB, free: 2.672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/0.4208, allocations: 225.3 kB / 452.8 MB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1997/0.6204, allocations: 3.177 MB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-05/0.6205, allocations: 15.91 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/0.6206, allocations: 10.66 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.772e-05/0.6206, allocations: 7.734 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01157/0.6322, allocations: 6.594 MB / 462.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-05/0.6323, allocations: 3.938 kB / 462.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007434/0.633, allocations: 176 kB / 462.8 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002006/0.635, allocations: 0.9056 MB / 463.7 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/0.6351, allocations: 39.61 kB / 463.8 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/0.6475, allocations: 14.84 MB / 478.6 MB, free: 94.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.6476, allocations: 3.938 kB / 478.6 MB, free: 94.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006348/0.6539, allocations: 4.541 MB / 483.1 MB, free: 91.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.6551, allocations: 0.5281 MB / 483.7 MB, free: 91.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002553/0.6554, allocations: 36 kB / 483.7 MB, free: 91.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.6564, allocations: 91.06 kB / 483.8 MB, free: 91.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004274/0.6568, allocations: 164.5 kB / 484 MB, free: 90.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.579e-05/0.6569, allocations: 39.98 kB / 484 MB, free: 90.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002008/0.6589, allocations: 1.489 MB / 485.5 MB, free: 89.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6589, allocations: 0 / 485.5 MB, free: 89.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002324/0.6613, allocations: 0.7018 MB / 486.2 MB, free: 88.73 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000333/0.6616, allocations: 163.3 kB / 486.3 MB, free: 88.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004189/0.6658, allocations: 3.14 MB / 489.5 MB, free: 85.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.6658, allocations: 0 / 489.5 MB, free: 85.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002754/0.6686, allocations: 2.282 MB / 491.8 MB, free: 83.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003117/0.6717, allocations: 0.6039 MB / 492.4 MB, free: 82.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.6823, allocations: 8.559 MB / 0.4892 GB, free: 73.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001867/0.6842, allocations: 2.674 MB / 0.4918 GB, free: 71.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001646/0.6858, allocations: 479.4 kB / 0.4923 GB, free: 70.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/0.6862, allocations: 135.4 kB / 0.4924 GB, free: 70.55 MB / 382.1 MB Notification: Performance of SimCode: time 1.763e-06/0.6862, allocations: 0 / 0.4924 GB, free: 70.55 MB / 382.1 MB Notification: Performance of Templates: time 0.05479/0.741, allocations: 36.3 MB / 0.5278 GB, free: 34.21 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)