Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001354/0.001354, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001169/0.001169, allocations: 193.1 kB / 16.13 MB, free: 6.66 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.364/1.364, allocations: 205.1 MB / 222 MB, free: 4.734 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.001293/0.001294, allocations: 51.94 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2263/0.2276, allocations: 46.62 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01401/0.2417, allocations: 13.53 MB / 338.2 MB, free: 6.578 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009508/0.2512, allocations: 4.441 MB / 342.7 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003472/0.2548, allocations: 71.69 kB / 342.7 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003954/0.2588, allocations: 0.9133 MB / 343.6 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004962/0.2638, allocations: 1.259 MB / 344.9 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002099/0.2659, allocations: 0.8544 MB / 345.8 MB, free: 15.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005951/0.2719, allocations: 5.099 MB / 350.8 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003631/0.2755, allocations: 3.027 MB / 353.9 MB, free: 6.801 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002607/0.2782, allocations: 1.736 MB / 355.6 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002674/0.2809, allocations: 2.272 MB / 357.9 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005729/0.2814, allocations: 340 kB / 358.2 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.2828, allocations: 0.5427 MB / 358.8 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009139/0.2838, allocations: 1.059 MB / 359.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002417/0.2862, allocations: 2.185 MB / 362 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006446/0.2926, allocations: 7.489 MB / 369.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.2927, allocations: 0 / 369.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2927, allocations: 0 / 369.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001505/0.2928, allocations: 0 / 369.5 MB, free: 7.133 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.01209/0.3049, allocations: 5.028 MB / 374.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.305, allocations: 8.031 kB / 374.5 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004307/0.3093, allocations: 0.8819 MB / 375.4 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004526/0.3139, allocations: 2.585 MB / 378 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/0.3141, allocations: 267.6 kB / 378.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000613/0.3147, allocations: 367.8 kB / 378.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00898/0.3237, allocations: 5.032 MB / 383.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.875e-05/0.3238, allocations: 0 / 383.6 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000346/0.3242, allocations: 148 kB / 383.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001463/0.3243, allocations: 163.2 kB / 384 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007358/0.3317, allocations: 4.377 MB / 388.3 MB, free: 4.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02474/0.3564, allocations: 15.91 MB / 404.2 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006955/0.3634, allocations: 7.784 MB / 412 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002514/0.366, allocations: 1.725 MB / 413.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007775/0.3738, allocations: 4.644 MB / 418.4 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.025e-05/0.3738, allocations: 51.81 kB / 418.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.617e-06/0.3738, allocations: 0 / 418.4 MB, free: 4.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01812/0.392, allocations: 8.123 MB / 426.6 MB, free: 12.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.3921, allocations: 68.72 kB / 426.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004175/0.3962, allocations: 2.163 MB / 428.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.3964, allocations: 53.7 kB / 428.9 MB, free: 9.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001288/0.3977, allocations: 1.616 MB / 430.5 MB, free: 8.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000526/0.3983, allocations: 0.5506 MB / 431 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005828/0.3989, allocations: 359.3 kB / 431.4 MB, free: 7.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.399, allocations: 309 kB / 431.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.4004, allocations: 0.9408 MB / 432.6 MB, free: 6.137 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001858/0.4023, allocations: 1.453 MB / 434.1 MB, free: 4.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003419/0.4057, allocations: 2.51 MB / 436.6 MB, free: 1.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4058, allocations: 4 kB / 436.6 MB, free: 1.742 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006018/0.4118, allocations: 3.351 MB / 439.9 MB, free: 14.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.181e-05/0.4118, allocations: 12 kB / 439.9 MB, free: 14.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.251e-05/0.4119, allocations: 16.41 kB / 440 MB, free: 14.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001887/0.4138, allocations: 0.7432 MB / 440.7 MB, free: 13.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001444/0.4152, allocations: 371.4 kB / 441.1 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.4267, allocations: 10.4 MB / 451.5 MB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.4285, allocations: 96.31 kB / 451.6 MB, free: 2.164 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002135/0.4287, allocations: 72 kB / 451.6 MB, free: 2.094 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.002117/0.4308, allocations: 1.215 MB / 452.8 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005411/0.4314, allocations: 229.2 kB / 453.1 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1844/0.6158, allocations: 3.161 MB / 456.2 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.6159, allocations: 14.12 kB / 456.2 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.42e-05/0.6159, allocations: 12.41 kB / 456.3 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.166e-05/0.616, allocations: 6.891 kB / 456.3 MB, free: 110.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/0.6286, allocations: 6.566 MB / 462.8 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.6286, allocations: 0 / 462.8 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007966/0.6294, allocations: 180.6 kB / 463 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00212/0.6316, allocations: 0.9038 MB / 463.9 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.6317, allocations: 40.25 kB / 463.9 MB, free: 107.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0128/0.6445, allocations: 14.81 MB / 478.8 MB, free: 95.36 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.6445, allocations: 3.5 kB / 478.8 MB, free: 95.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006435/0.651, allocations: 4.504 MB / 483.3 MB, free: 91.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/0.6523, allocations: 0.5258 MB / 483.8 MB, free: 90.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006363/0.653, allocations: 40 kB / 483.8 MB, free: 90.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001261/0.6542, allocations: 78.72 kB / 483.9 MB, free: 90.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/0.6547, allocations: 153.1 kB / 484.1 MB, free: 90.72 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6548, allocations: 47.98 kB / 484.1 MB, free: 90.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002454/0.6573, allocations: 1.481 MB / 485.6 MB, free: 89.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6573, allocations: 3.125 kB / 485.6 MB, free: 89.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002959/0.6602, allocations: 0.7031 MB / 486.3 MB, free: 88.47 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.0003835/0.6606, allocations: 172.4 kB / 486.5 MB, free: 88.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004373/0.665, allocations: 3.11 MB / 489.6 MB, free: 85.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.665, allocations: 8.062 kB / 489.6 MB, free: 85.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002961/0.668, allocations: 2.267 MB / 491.8 MB, free: 82.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003397/0.6714, allocations: 0.5985 MB / 492.4 MB, free: 82.23 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.6834, allocations: 8.412 MB / 0.4891 GB, free: 73.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002706/0.6861, allocations: 2.678 MB / 0.4917 GB, free: 71.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00182/0.688, allocations: 479.4 kB / 0.4922 GB, free: 70.65 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005187/0.6885, allocations: 139.4 kB / 0.4923 GB, free: 70.51 MB / 382.1 MB Notification: Performance of SimCode: time 9.02e-07/0.6885, allocations: 0 / 0.4923 GB, free: 70.51 MB / 382.1 MB Notification: Performance of Templates: time 0.05575/0.7443, allocations: 36.87 MB / 0.5283 GB, free: 33.59 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)