Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, 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.001165/0.001165, allocations: 191.8 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.346/1.346, allocations: 205.1 MB / 222 MB, free: 4.742 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.001126/0.001127, allocations: 55.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2761, allocations: 46.62 MB / 324.7 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.02406/0.3003, allocations: 13.42 MB / 338.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01443/0.3148, allocations: 4.818 MB / 342.9 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003209/0.3181, allocations: 67.69 kB / 343 MB, free: 1.805 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005058/0.3232, allocations: 0.9017 MB / 343.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007443/0.3307, allocations: 1.267 MB / 345.2 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00474/0.3354, allocations: 0.9011 MB / 346.1 MB, free: 14.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3459, allocations: 4.632 MB / 350.7 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006575/0.3525, allocations: 2.73 MB / 353.4 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002708/0.3553, allocations: 1.599 MB / 355 MB, free: 5.668 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003535/0.3588, allocations: 2.152 MB / 357.2 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.3601, allocations: 316 kB / 357.5 MB, free: 3.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002636/0.3627, allocations: 0.6869 MB / 358.2 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.3643, allocations: 1.086 MB / 359.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003979/0.3683, allocations: 2.103 MB / 361.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006923/0.3752, allocations: 7.103 MB / 368.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.3753, allocations: 7.938 kB / 368.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3753, allocations: 0 / 368.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001379/0.3754, allocations: 0 / 368.5 MB, free: 8.176 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01045/0.3859, allocations: 4.957 MB / 373.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.3859, allocations: 16.03 kB / 373.4 MB, free: 3.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00421/0.3902, allocations: 0.878 MB / 374.3 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004193/0.3944, allocations: 2.557 MB / 376.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.3946, allocations: 246.6 kB / 377.1 MB, free: 15.36 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005568/0.3951, allocations: 339.8 kB / 377.4 MB, free: 15.03 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007842/0.403, allocations: 4.543 MB / 382 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-05/0.4031, allocations: 7.906 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002997/0.4034, allocations: 140 kB / 382.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/0.4035, allocations: 154.7 kB / 382.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006319/0.4098, allocations: 3.907 MB / 386.2 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02063/0.4305, allocations: 14.18 MB / 400.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007056/0.4376, allocations: 6.975 MB / 407.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0027/0.4403, allocations: 1.689 MB / 409 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007705/0.448, allocations: 4.253 MB / 413.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/0.4481, allocations: 59.81 kB / 413.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 4.859e-06/0.4481, allocations: 0 / 413.3 MB, free: 9.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01702/0.4652, allocations: 7.807 MB / 421.2 MB, free: 1.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.4653, allocations: 77.39 kB / 421.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003726/0.469, allocations: 2.624 MB / 423.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002/0.4692, allocations: 57.7 kB / 423.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001155/0.4704, allocations: 1.619 MB / 425.5 MB, free: 13.49 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005077/0.4709, allocations: 0.6237 MB / 426.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005323/0.4714, allocations: 339.4 kB / 426.5 MB, free: 12.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.4716, allocations: 305.1 kB / 426.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.4732, allocations: 0.9058 MB / 427.7 MB, free: 11.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/0.4751, allocations: 1.302 MB / 429 MB, free: 9.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003396/0.4785, allocations: 2.352 MB / 431.3 MB, free: 7.359 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.4786, allocations: 4 kB / 431.3 MB, free: 7.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005449/0.484, allocations: 3.073 MB / 434.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.4841, allocations: 8 kB / 434.4 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.322e-05/0.4841, allocations: 12.25 kB / 434.4 MB, free: 4.246 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/0.4856, allocations: 0.5594 MB / 435 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00172/0.4873, allocations: 435.3 kB / 435.4 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009533/0.4969, allocations: 6.945 MB / 442.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.4984, allocations: 88 kB / 442.5 MB, free: 11.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002151/0.4986, allocations: 75.98 kB / 442.5 MB, free: 11.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * 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%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002106/0.5007, allocations: 1.153 MB / 443.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005869/0.5013, allocations: 256.9 kB / 443.9 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005215/0.5066, allocations: 2.897 MB / 446.8 MB, free: 7.539 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.943e-05/0.5066, allocations: 20 kB / 446.8 MB, free: 7.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.878e-05/0.5066, allocations: 8 kB / 446.9 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.5067, allocations: 11.91 kB / 446.9 MB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.5169, allocations: 6.33 MB / 453.2 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.5169, allocations: 0 / 453.2 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00129/0.5182, allocations: 283.7 kB / 453.5 MB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.5198, allocations: 0.6277 MB / 454.1 MB, free: 164 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.52, allocations: 47.92 kB / 454.1 MB, free: 116 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1615/0.6815, allocations: 10.47 MB / 464.6 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.6815, allocations: 1.125 kB / 464.6 MB, free: 103.4 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006711/0.6882, allocations: 4.157 MB / 468.8 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001063/0.6893, allocations: 0.5403 MB / 469.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004616/0.6898, allocations: 42.5 kB / 469.4 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.691, allocations: 86.02 kB / 469.4 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003107/0.6913, allocations: 144.2 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001144/0.6914, allocations: 54.16 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002348/0.6938, allocations: 1.844 MB / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.6938, allocations: 0 / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002054/0.6959, allocations: 0.6904 MB / 472.2 MB, free: 100.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00113/0.697, allocations: 444.3 kB / 472.6 MB, free: 100.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004298/0.7013, allocations: 2.836 MB / 475.4 MB, free: 99.06 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.706e-06/0.7013, allocations: 0 / 475.4 MB, free: 99.06 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0025/0.7038, allocations: 1.935 MB / 477.4 MB, free: 97.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.7065, allocations: 0.5528 MB / 477.9 MB, free: 97.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/0.718, allocations: 8.632 MB / 486.6 MB, free: 89 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002497/0.7206, allocations: 2.631 MB / 489.2 MB, free: 86.34 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.7224, allocations: 0.4928 MB / 489.7 MB, free: 85.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005308/0.7229, allocations: 163.4 kB / 489.8 MB, free: 85.68 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.7229, allocations: 0 / 489.8 MB, free: 85.68 MB / 382.1 MB Notification: Performance of Templates: time 0.05254/0.7755, allocations: 35.78 MB / 0.5133 GB, free: 49.86 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)