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.0007916/0.0007917, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005224/0.005224, allocations: 169.3 kB / 16.26 MB, free: 6.652 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.402/1.402, allocations: 205.4 MB / 222.4 MB, free: 5.555 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.0004117/0.0004117, allocations: 12 kB / 279.4 MB, free: 12.51 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.232, allocations: 47.59 MB / 327 MB, free: 1.359 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01818/0.2503, allocations: 12.86 MB / 339.9 MB, free: 6.453 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01267/0.263, allocations: 4.398 MB / 344.3 MB, free: 2.043 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00279/0.2659, allocations: 71.69 kB / 344.4 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003569/0.2695, allocations: 0.9094 MB / 345.3 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004606/0.2741, allocations: 1.251 MB / 346.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00243/0.2765, allocations: 0.8382 MB / 347.4 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006357/0.2829, allocations: 5.087 MB / 352.5 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003798/0.2867, allocations: 3.011 MB / 355.5 MB, free: 6.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002259/0.289, allocations: 1.509 MB / 357 MB, free: 5.258 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002871/0.2919, allocations: 2.003 MB / 359 MB, free: 3.246 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005047/0.2924, allocations: 240 kB / 359.2 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.2937, allocations: 459.7 kB / 359.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007746/0.2945, allocations: 0.9144 MB / 360.6 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003141/0.2976, allocations: 2.027 MB / 362.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007094/0.3047, allocations: 7.257 MB / 369.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3048, allocations: 0 / 369.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.247e-06/0.3048, allocations: 4 kB / 369.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002135/0.305, allocations: 0 / 369.9 MB, free: 8.316 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.01141/0.3165, allocations: 4.257 MB / 374.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.3165, allocations: 8.031 kB / 374.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004844/0.3214, allocations: 0.8819 MB / 375 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005061/0.3265, allocations: 2.585 MB / 377.6 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002141/0.3267, allocations: 267.6 kB / 377.9 MB, free: 200 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006768/0.3274, allocations: 367.8 kB / 378.2 MB, free: 15.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009142/0.3365, allocations: 5.044 MB / 383.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.516e-05/0.3366, allocations: 4 kB / 383.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003741/0.337, allocations: 148 kB / 383.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000159/0.3372, allocations: 167.2 kB / 383.6 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00784/0.345, allocations: 4.401 MB / 388 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0233/0.3684, allocations: 16 MB / 404 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007468/0.3759, allocations: 7.799 MB / 411.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002706/0.3786, allocations: 1.729 MB / 413.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007919/0.3866, allocations: 4.659 MB / 418.2 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/0.3866, allocations: 51.88 kB / 418.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 4.509e-06/0.3867, allocations: 0 / 418.2 MB, free: 6.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01764/0.4043, allocations: 8.221 MB / 426.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.4044, allocations: 68.72 kB / 426.5 MB, free: 13.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/0.4083, allocations: 2.159 MB / 428.7 MB, free: 11.69 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.4085, allocations: 53.7 kB / 428.7 MB, free: 11.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.4096, allocations: 1.612 MB / 430.3 MB, free: 9.996 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004543/0.4101, allocations: 0.5506 MB / 430.9 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002571/0.4104, allocations: 169.6 kB / 431 MB, free: 9.266 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.331e-05/0.4105, allocations: 309.1 kB / 431.3 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.4121, allocations: 0.9526 MB / 432.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.414, allocations: 1.476 MB / 433.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003564/0.4175, allocations: 2.53 MB / 436.3 MB, free: 3.578 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.4176, allocations: 4 kB / 436.3 MB, free: 3.574 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005703/0.4233, allocations: 3.375 MB / 439.7 MB, free: 156 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.4233, allocations: 8 kB / 439.7 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.4234, allocations: 19.94 kB / 439.7 MB, free: 128 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002149/0.4255, allocations: 0.7397 MB / 440.4 MB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.427, allocations: 383.4 kB / 440.8 MB, free: 15 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01159/0.4386, allocations: 10.42 MB / 451.2 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/0.4405, allocations: 91.94 kB / 451.3 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/0.4407, allocations: 80 kB / 451.4 MB, free: 3.875 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.00246/0.4432, allocations: 1.208 MB / 452.6 MB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005421/0.4438, allocations: 229.1 kB / 452.8 MB, free: 2.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.216/0.6597, allocations: 3.181 MB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.195e-05/0.6598, allocations: 15.84 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.952e-05/0.6598, allocations: 11.12 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.835e-05/0.6599, allocations: 8.516 kB / 456 MB, free: 108.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6724, allocations: 6.592 MB / 462.6 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/0.6725, allocations: 13.75 kB / 462.7 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007797/0.6733, allocations: 182.5 kB / 462.8 MB, free: 106.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/0.6753, allocations: 0.9017 MB / 463.7 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.6754, allocations: 39.67 kB / 463.8 MB, free: 105.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/0.6882, allocations: 14.84 MB / 478.6 MB, free: 94.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.6882, allocations: 7.875 kB / 478.6 MB, free: 94.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0064/0.6947, allocations: 4.538 MB / 483.2 MB, free: 91.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.6958, allocations: 0.5245 MB / 483.7 MB, free: 91.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002584/0.6961, allocations: 39.94 kB / 483.7 MB, free: 91.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009948/0.6971, allocations: 82.38 kB / 483.8 MB, free: 91.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004691/0.6976, allocations: 156.8 kB / 484 MB, free: 90.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.969e-05/0.6977, allocations: 47.98 kB / 484 MB, free: 90.9 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002038/0.6997, allocations: 1.481 MB / 485.5 MB, free: 89.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6997, allocations: 0 / 485.5 MB, free: 89.4 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002344/0.7021, allocations: 0.7057 MB / 486.2 MB, free: 88.7 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.0003227/0.7024, allocations: 169 kB / 486.3 MB, free: 88.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004054/0.7065, allocations: 3.139 MB / 489.5 MB, free: 85.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.928e-06/0.7065, allocations: 0 / 489.5 MB, free: 85.34 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002787/0.7093, allocations: 2.287 MB / 491.8 MB, free: 83.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.7124, allocations: 0.6047 MB / 492.4 MB, free: 82.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.7227, allocations: 8.541 MB / 0.4892 GB, free: 73.84 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.7246, allocations: 2.674 MB / 0.4918 GB, free: 71.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001703/0.7263, allocations: 479.4 kB / 0.4922 GB, free: 70.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.7267, allocations: 139.4 kB / 0.4924 GB, free: 70.53 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.7267, allocations: 0 / 0.4924 GB, free: 70.53 MB / 382.1 MB Notification: Performance of Templates: time 0.05514/0.7818, allocations: 36.29 MB / 0.5278 GB, free: 34.19 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)