Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.0008509/0.000851, allocations: 88.16 kB / 16.31 MB, free: 5.539 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.0009418/0.0009419, allocations: 183.6 kB / 17.21 MB, free: 5.457 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.391/1.391, allocations: 205.4 MB / 223.4 MB, free: 13.16 MB / 190.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.0004436/0.0004438, allocations: 12.61 kB / 280.2 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09436/0.09482, allocations: 47.58 MB / 327.7 MB, free: 4.07 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01403/0.1089, allocations: 11.94 MB / 339.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009626/0.1186, allocations: 4.521 MB / 344.2 MB, free: 3.551 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.1207, allocations: 67.69 kB / 344.3 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002745/0.1235, allocations: 0.773 MB / 345 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003792/0.1273, allocations: 1.15 MB / 346.2 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002235/0.1296, allocations: 0.6899 MB / 346.9 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006296/0.1359, allocations: 4.328 MB / 351.2 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003844/0.1398, allocations: 2.258 MB / 353.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.1421, allocations: 1.393 MB / 354.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003027/0.1452, allocations: 1.84 MB / 356.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007915/0.146, allocations: 220 kB / 356.9 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001769/0.1478, allocations: 0.5425 MB / 357.4 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.149, allocations: 0.942 MB / 358.4 MB, free: 5.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.1503, allocations: 0.8082 MB / 359.2 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00582/0.1561, allocations: 5.945 MB / 365.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1561, allocations: 0 / 365.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1561, allocations: 0 / 365.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000127/0.1563, allocations: 0 / 365.1 MB, free: 14.49 MB / 318.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.009881/0.1662, allocations: 4.256 MB / 369.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1662, allocations: 8.031 kB / 369.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004546/0.1708, allocations: 0.8809 MB / 370.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004651/0.1754, allocations: 2.472 MB / 372.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002061/0.1757, allocations: 250.7 kB / 373 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000577/0.1763, allocations: 339.8 kB / 373.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0082/0.1845, allocations: 4.539 MB / 377.9 MB, free: 1.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.661e-05/0.1846, allocations: 7.938 kB / 377.9 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003063/0.1849, allocations: 136 kB / 378 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.1851, allocations: 154.7 kB / 378.2 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1729/0.358, allocations: 3.903 MB / 382.1 MB, free: 46.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02284/0.3809, allocations: 14.24 MB / 396.3 MB, free: 38.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006178/0.3871, allocations: 6.978 MB / 403.3 MB, free: 32.38 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002495/0.3896, allocations: 1.695 MB / 405 MB, free: 31.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006337/0.396, allocations: 4.276 MB / 409.3 MB, free: 28.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.396, allocations: 51.38 kB / 409.3 MB, free: 28.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.546e-06/0.3961, allocations: 0 / 409.3 MB, free: 28.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01456/0.4106, allocations: 7.95 MB / 417.3 MB, free: 21.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.335e-05/0.4107, allocations: 69.41 kB / 417.3 MB, free: 21.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002954/0.4136, allocations: 2.616 MB / 419.9 MB, free: 19.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000146/0.4138, allocations: 55.03 kB / 420 MB, free: 18.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008477/0.4147, allocations: 1.611 MB / 421.6 MB, free: 17.34 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003966/0.4151, allocations: 0.627 MB / 422.2 MB, free: 16.72 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.4152, allocations: 36 kB / 422.3 MB, free: 16.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4153, allocations: 381.9 kB / 422.6 MB, free: 16.3 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001336/0.4166, allocations: 0.9175 MB / 423.6 MB, free: 15.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.4181, allocations: 1.31 MB / 424.9 MB, free: 13.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.4196, allocations: 1.138 MB / 426 MB, free: 12.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.004e-06/0.4196, allocations: 4 kB / 426 MB, free: 12.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004546/0.4242, allocations: 3.077 MB / 429.1 MB, free: 9.691 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.4242, allocations: 8 kB / 429.1 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.867e-05/0.4242, allocations: 12 kB / 429.1 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001312/0.4256, allocations: 0.548 MB / 429.7 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/0.4272, allocations: 443.3 kB / 430.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007021/0.4343, allocations: 6.948 MB / 437 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4358, allocations: 92 kB / 437.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.436, allocations: 81.31 kB / 437.2 MB, free: 1.312 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,75.5%) 34} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001938/0.438, allocations: 1.166 MB / 438.4 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004827/0.4385, allocations: 249.1 kB / 438.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005329/0.4438, allocations: 2.903 MB / 441.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.238e-05/0.4439, allocations: 24 kB / 441.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.4439, allocations: 8 kB / 441.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/0.4439, allocations: 10.81 kB / 441.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/0.4543, allocations: 6.36 MB / 447.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.4543, allocations: 0 / 447.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/0.4557, allocations: 287.7 kB / 448.2 MB, free: 6.227 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001612/0.4573, allocations: 0.6124 MB / 448.8 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001317/0.4574, allocations: 43.97 kB / 448.9 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.469, allocations: 10.49 MB / 459.3 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.469, allocations: 7.922 kB / 459.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007404/0.4764, allocations: 4.161 MB / 463.5 MB, free: 6.363 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001213/0.4776, allocations: 0.5447 MB / 464.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004882/0.4782, allocations: 43.95 kB / 464.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001295/0.4795, allocations: 92.7 kB / 464.2 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003588/0.4798, allocations: 141.7 kB / 464.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/0.48, allocations: 55.97 kB / 464.4 MB, free: 5.469 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003327/0.4833, allocations: 1.827 MB / 466.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4833, allocations: 0 / 466.2 MB, free: 3.629 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003019/0.4864, allocations: 0.6894 MB / 466.9 MB, free: 2.945 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 12,(2,100.0%) 25} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001256/0.4876, allocations: 442.2 kB / 467.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005677/0.4933, allocations: 2.851 MB / 470.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.95e-06/0.4934, allocations: 0 / 470.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003388/0.4968, allocations: 1.948 MB / 472.1 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002911/0.4997, allocations: 0.562 MB / 472.7 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/0.5127, allocations: 8.373 MB / 481.1 MB, free: 4.695 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002322/0.5151, allocations: 2.631 MB / 483.7 MB, free: 2.035 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001884/0.517, allocations: 0.5045 MB / 484.2 MB, free: 1.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.5174, allocations: 163.4 kB / 484.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5174, allocations: 0 / 484.4 MB, free: 1.367 MB / 366.1 MB Notification: Performance of Templates: time 0.05921/0.5766, allocations: 34.35 MB / 0.5065 GB, free: 14.97 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1)