Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001348/0.001348, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001516/0.001516, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.355/1.355, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0004236/0.0004236, allocations: 8 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.2102, allocations: 47.59 MB / 326.5 MB, free: 1.617 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.0118/0.222, allocations: 10.96 MB / 337.4 MB, free: 8.676 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009162/0.2313, allocations: 4.612 MB / 342 MB, free: 4.055 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002413/0.2337, allocations: 59.75 kB / 342.1 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002818/0.2366, allocations: 0.8007 MB / 342.9 MB, free: 3.191 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004256/0.2409, allocations: 1.211 MB / 344.1 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.243, allocations: 0.6898 MB / 344.8 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.005324/0.2483, allocations: 2.941 MB / 347.7 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002985/0.2513, allocations: 2.266 MB / 350 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002346/0.2537, allocations: 1.347 MB / 351.3 MB, free: 10.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002705/0.2564, allocations: 1.622 MB / 353 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005001/0.2569, allocations: 224 kB / 353.2 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001423/0.2584, allocations: 0.5073 MB / 353.7 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009097/0.2593, allocations: 0.9462 MB / 354.6 MB, free: 7.379 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009621/0.2603, allocations: 0.8082 MB / 355.4 MB, free: 6.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005875/0.2662, allocations: 5.902 MB / 361.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2662, allocations: 0 / 361.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2662, allocations: 0 / 361.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001841/0.2664, allocations: 0 / 361.3 MB, free: 0.6445 MB / 286.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.01079/0.2772, allocations: 4.252 MB / 365.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.2773, allocations: 12.02 kB / 365.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004847/0.2821, allocations: 0.8809 MB / 366.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005101/0.2872, allocations: 2.499 MB / 369 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.2875, allocations: 246.7 kB / 369.2 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005946/0.2881, allocations: 339.9 kB / 369.6 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007736/0.2958, allocations: 4.5 MB / 374.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.22e-05/0.2959, allocations: 11.92 kB / 374.1 MB, free: 3.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003116/0.2962, allocations: 136 kB / 374.2 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001609/0.2964, allocations: 150.7 kB / 374.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006759/0.3031, allocations: 3.887 MB / 378.2 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02222/0.3254, allocations: 14.17 MB / 392.4 MB, free: 1.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007183/0.3326, allocations: 6.951 MB / 399.4 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006663/0.3393, allocations: 3.637 MB / 403 MB, free: 5.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.997e-05/0.3394, allocations: 52.56 kB / 403.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=169): time 4.278e-06/0.3394, allocations: 0 / 403.1 MB, free: 5.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=189): time 0.01668/0.3561, allocations: 8.067 MB / 411.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.3562, allocations: 69.41 kB / 411.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003636/0.3598, allocations: 2.572 MB / 413.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002364/0.3601, allocations: 53.7 kB / 413.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00117/0.3613, allocations: 1.603 MB / 415.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006098/0.3619, allocations: 0.6314 MB / 416 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.362, allocations: 40 kB / 416.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.3622, allocations: 385.9 kB / 416.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001611/0.3638, allocations: 0.9019 MB / 417.4 MB, free: 6.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001848/0.3657, allocations: 1.292 MB / 418.7 MB, free: 5.527 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001849/0.3675, allocations: 1.126 MB / 419.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.3675, allocations: 0 / 419.8 MB, free: 4.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.005474/0.373, allocations: 3.065 MB / 422.8 MB, free: 1.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.3731, allocations: 8 kB / 422.9 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.084e-05/0.3731, allocations: 12 kB / 422.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/0.3746, allocations: 0.5557 MB / 423.4 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001809/0.3764, allocations: 439.3 kB / 423.9 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009541/0.386, allocations: 7.23 MB / 431.1 MB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.3878, allocations: 79.95 kB / 431.2 MB, free: 8.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/0.388, allocations: 75.98 kB / 431.2 MB, free: 8.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * 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 (199): * Single equations (assignments): 195 * 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,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002194/0.3902, allocations: 1.161 MB / 432.4 MB, free: 7.488 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004986/0.3907, allocations: 260.8 kB / 432.7 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005155/0.3959, allocations: 2.905 MB / 435.6 MB, free: 4.297 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.409e-05/0.3959, allocations: 23.98 kB / 435.6 MB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.18e-05/0.396, allocations: 8 kB / 435.6 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-05/0.396, allocations: 7.969 kB / 435.6 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01065/0.4066, allocations: 6.33 MB / 441.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/0.4067, allocations: 0 / 441.9 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001342/0.408, allocations: 287.7 kB / 442.2 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001593/0.4096, allocations: 0.6239 MB / 442.8 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/0.4098, allocations: 51.89 kB / 442.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.4215, allocations: 10.77 MB / 453.7 MB, free: 1.562 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.4216, allocations: 3.938 kB / 453.7 MB, free: 1.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1763/0.5979, allocations: 4.234 MB / 457.9 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/0.5992, allocations: 0.537 MB / 458.4 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003392/0.5995, allocations: 43.52 kB / 458.5 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.6007, allocations: 89.03 kB / 458.6 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/0.601, allocations: 145.6 kB / 458.7 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.6011, allocations: 51.05 kB / 458.7 MB, free: 107.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002457/0.6036, allocations: 1.793 MB / 460.5 MB, free: 107 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6036, allocations: 0 / 460.5 MB, free: 107 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002406/0.606, allocations: 0.6927 MB / 461.2 MB, free: 107 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 (129): * Single equations (assignments): 123 * 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%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001051/0.6071, allocations: 441.9 kB / 461.7 MB, free: 106.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004338/0.6114, allocations: 2.849 MB / 464.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6114, allocations: 0 / 464.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002573/0.614, allocations: 1.966 MB / 466.5 MB, free: 104.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/0.6161, allocations: 0.5282 MB / 467 MB, free: 104.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00996/0.6261, allocations: 8.368 MB / 475.4 MB, free: 99.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001818/0.628, allocations: 2.692 MB / 478.1 MB, free: 97.38 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00174/0.6297, allocations: 0.508 MB / 478.6 MB, free: 96.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003988/0.6301, allocations: 163.4 kB / 478.7 MB, free: 96.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6301, allocations: 0 / 478.7 MB, free: 96.73 MB / 382.1 MB Notification: Performance of Templates: time 0.04734/0.6775, allocations: 33.68 MB / 0.5004 GB, free: 63.01 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) Environment - environmentSimulation: