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.001255/0.001255, allocations: 105.4 kB / 16.62 MB, free: 6.809 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.001251/0.001251, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.359/1.359, allocations: 205.1 MB / 223.4 MB, free: 12.44 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.001258/0.001258, allocations: 43.94 kB / 279.5 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.08505, allocations: 46.63 MB / 326.1 MB, free: 4.785 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01432/0.09941, allocations: 13.42 MB / 339.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008169/0.1076, allocations: 4.791 MB / 344.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001744/0.1094, allocations: 63.75 kB / 344.4 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002522/0.112, allocations: 0.9135 MB / 345.3 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00425/0.1162, allocations: 1.259 MB / 346.6 MB, free: 248 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002314/0.1186, allocations: 0.8851 MB / 347.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.1247, allocations: 4.48 MB / 352 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003787/0.1286, allocations: 3.296 MB / 355.2 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002481/0.1311, allocations: 1.888 MB / 357.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003003/0.1341, allocations: 2.312 MB / 359.4 MB, free: 3.273 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008282/0.1349, allocations: 0.5312 MB / 360 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/0.1369, allocations: 0.9095 MB / 360.9 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.1379, allocations: 1.309 MB / 362.2 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.1406, allocations: 2.349 MB / 364.5 MB, free: 14.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006817/0.1474, allocations: 7.264 MB / 371.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.1475, allocations: 0 / 371.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1475, allocations: 0 / 371.8 MB, free: 6.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001197/0.1476, allocations: 0 / 371.8 MB, free: 6.875 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.01127/0.1589, allocations: 4.961 MB / 376.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.1589, allocations: 15.89 kB / 376.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004405/0.1633, allocations: 0.8819 MB / 377.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1669/0.3303, allocations: 2.55 MB / 380.2 MB, free: 48.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001713/0.3305, allocations: 250.5 kB / 380.5 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000619/0.3311, allocations: 336.6 kB / 380.8 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007648/0.3388, allocations: 4.544 MB / 385.3 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.149e-05/0.3389, allocations: 5.141 kB / 385.3 MB, free: 46.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.3392, allocations: 136.8 kB / 385.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001808/0.3394, allocations: 154.7 kB / 385.6 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007005/0.3464, allocations: 3.917 MB / 389.5 MB, free: 44.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01821/0.3646, allocations: 14.18 MB / 403.7 MB, free: 34.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005752/0.3704, allocations: 6.967 MB / 410.7 MB, free: 28.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/0.3726, allocations: 1.69 MB / 412.4 MB, free: 26.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005384/0.378, allocations: 4.259 MB / 416.6 MB, free: 22.12 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.378, allocations: 51.81 kB / 416.7 MB, free: 22.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 3.376e-06/0.378, allocations: 0 / 416.7 MB, free: 22.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.01389/0.3919, allocations: 7.827 MB / 424.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.757e-05/0.392, allocations: 73.41 kB / 424.6 MB, free: 14.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.3945, allocations: 2.627 MB / 427.2 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.3946, allocations: 57.7 kB / 427.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006601/0.3953, allocations: 1.607 MB / 428.9 MB, free: 9.691 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002919/0.3956, allocations: 0.6302 MB / 429.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000428/0.396, allocations: 339.1 kB / 429.8 MB, free: 8.73 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.226e-05/0.3961, allocations: 309.1 kB / 430.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3973, allocations: 0.9019 MB / 431 MB, free: 7.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.3987, allocations: 1.306 MB / 432.4 MB, free: 6.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002644/0.4013, allocations: 2.35 MB / 434.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.4013, allocations: 4 kB / 434.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004293/0.4056, allocations: 3.071 MB / 437.8 MB, free: 496 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.044e-05/0.4057, allocations: 12.25 kB / 437.8 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.4057, allocations: 12 kB / 437.8 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.407, allocations: 0.5555 MB / 438.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.4087, allocations: 443.3 kB / 438.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009224/0.4179, allocations: 7.566 MB / 446.4 MB, free: 7.633 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001725/0.4197, allocations: 91.77 kB / 446.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001713/0.4199, allocations: 76.05 kB / 446.5 MB, free: 7.469 MB / 334.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.002219/0.4221, allocations: 1.157 MB / 447.7 MB, free: 6.301 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005123/0.4226, allocations: 257 kB / 447.9 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005079/0.4277, allocations: 2.89 MB / 450.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-05/0.4277, allocations: 19.98 kB / 450.8 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.4278, allocations: 12 kB / 450.8 MB, free: 3.105 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.4278, allocations: 7.969 kB / 450.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009659/0.4374, allocations: 6.338 MB / 457.2 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.696e-06/0.4375, allocations: 4 kB / 457.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.4388, allocations: 275.6 kB / 457.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.4404, allocations: 0.6248 MB / 458.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001238/0.4406, allocations: 47.98 kB / 458.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01134/0.4519, allocations: 11.45 MB / 469.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4519, allocations: 0 / 469.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006811/0.4587, allocations: 4.16 MB / 473.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001071/0.4598, allocations: 0.533 MB / 474.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003162/0.4602, allocations: 43.98 kB / 474.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.4613, allocations: 83.94 kB / 474.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/0.4616, allocations: 133.8 kB / 474.5 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.4617, allocations: 52.05 kB / 474.6 MB, free: 10.71 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.4641, allocations: 1.85 MB / 476.4 MB, free: 8.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4641, allocations: 4 kB / 476.4 MB, free: 8.844 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002121/0.4663, allocations: 0.6862 MB / 477.1 MB, free: 8.16 MB / 366.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.00108/0.4674, allocations: 451.7 kB / 477.6 MB, free: 7.742 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007666/0.475, allocations: 3.445 MB / 481 MB, free: 4.293 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.4751, allocations: 4.125 kB / 481 MB, free: 4.289 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002997/0.4781, allocations: 1.942 MB / 483 MB, free: 2.301 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.481, allocations: 0.5814 MB / 483.5 MB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01244/0.4934, allocations: 8.621 MB / 492.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002323/0.4958, allocations: 2.635 MB / 494.8 MB, free: 6.406 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001835/0.4977, allocations: 0.5006 MB / 495.3 MB, free: 5.902 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.4981, allocations: 167.4 kB / 495.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.4981, allocations: 0 / 495.5 MB, free: 5.738 MB / 382.1 MB Notification: Performance of Templates: time 0.06099/0.5591, allocations: 37.1 MB / 0.5201 GB, free: 0.5664 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)