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.0008251/0.0008251, allocations: 97.64 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.005196/0.005196, allocations: 170.1 kB / 16.27 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.384/1.384, allocations: 205.4 MB / 222.4 MB, free: 5.551 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.0004297/0.0004297, allocations: 8 kB / 279.5 MB, free: 12.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.2165, allocations: 47.59 MB / 327 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01258/0.2291, allocations: 12.76 MB / 339.8 MB, free: 6.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009741/0.2389, allocations: 4.76 MB / 344.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00252/0.2414, allocations: 67.69 kB / 344.6 MB, free: 1.691 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003384/0.2448, allocations: 0.9056 MB / 345.5 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004774/0.2496, allocations: 1.248 MB / 346.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002629/0.2523, allocations: 0.885 MB / 347.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006379/0.2587, allocations: 4.632 MB / 352.3 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003979/0.2627, allocations: 2.702 MB / 355 MB, free: 7.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002891/0.2656, allocations: 1.424 MB / 356.4 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003485/0.2691, allocations: 1.902 MB / 358.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.2701, allocations: 224 kB / 358.5 MB, free: 3.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002311/0.2724, allocations: 0.5892 MB / 359.1 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.2739, allocations: 0.9456 MB / 360.1 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003087/0.277, allocations: 1.968 MB / 362 MB, free: 140 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007281/0.2843, allocations: 6.883 MB / 368.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.2843, allocations: 0 / 368.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.915e-06/0.2843, allocations: 0 / 368.9 MB, free: 9.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000185/0.2845, allocations: 0 / 368.9 MB, free: 9.23 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.01111/0.2956, allocations: 4.221 MB / 373.2 MB, free: 4.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.2957, allocations: 8.031 kB / 373.2 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004689/0.3004, allocations: 0.8858 MB / 374 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004372/0.3048, allocations: 2.553 MB / 376.6 MB, free: 1.406 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002016/0.305, allocations: 258.6 kB / 376.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005335/0.3056, allocations: 331.9 kB / 377.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007913/0.3135, allocations: 4.567 MB / 381.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.304e-05/0.3136, allocations: 0 / 381.7 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/0.3139, allocations: 132 kB / 381.9 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001561/0.314, allocations: 154.7 kB / 382 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006525/0.3206, allocations: 3.934 MB / 386 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02114/0.3417, allocations: 14.27 MB / 400.2 MB, free: 9.422 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008019/0.3498, allocations: 6.994 MB / 407.2 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003686/0.3535, allocations: 1.693 MB / 408.9 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007383/0.3609, allocations: 4.26 MB / 413.2 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.466e-05/0.361, allocations: 47.88 kB / 413.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 5.189e-06/0.361, allocations: 4 kB / 413.2 MB, free: 11.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01682/0.3778, allocations: 7.921 MB / 421.1 MB, free: 3.465 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.3779, allocations: 69.41 kB / 421.2 MB, free: 3.387 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.3814, allocations: 2.627 MB / 423.8 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001564/0.3815, allocations: 53.7 kB / 423.9 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001091/0.3826, allocations: 1.623 MB / 425.5 MB, free: 15.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005328/0.3832, allocations: 0.6237 MB / 426.1 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002135/0.3834, allocations: 153.6 kB / 426.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.891e-05/0.3835, allocations: 309.1 kB / 426.6 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001547/0.385, allocations: 0.9214 MB / 427.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.3869, allocations: 1.321 MB / 428.8 MB, free: 11.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003476/0.3904, allocations: 2.379 MB / 431.2 MB, free: 9.012 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-06/0.3904, allocations: 4 kB / 431.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005468/0.3959, allocations: 3.089 MB / 434.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.3959, allocations: 12 kB / 434.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.3959, allocations: 11.98 kB / 434.3 MB, free: 5.879 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.3974, allocations: 0.5556 MB / 434.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001791/0.3992, allocations: 443.3 kB / 435.3 MB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008598/0.4079, allocations: 6.945 MB / 442.3 MB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001693/0.4096, allocations: 91.94 kB / 442.4 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001624/0.4097, allocations: 80.05 kB / 442.4 MB, free: 13.5 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.001915/0.4117, allocations: 1.161 MB / 443.6 MB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000402/0.4121, allocations: 252.9 kB / 443.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005251/0.4173, allocations: 2.909 MB / 446.7 MB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.4174, allocations: 23.98 kB / 446.8 MB, free: 9.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/0.4174, allocations: 15.94 kB / 446.8 MB, free: 9.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.169e-05/0.4174, allocations: 15.89 kB / 446.8 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009974/0.4274, allocations: 6.361 MB / 453.2 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-06/0.4274, allocations: 0 / 453.2 MB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.4288, allocations: 287.6 kB / 453.4 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/0.4304, allocations: 0.6126 MB / 454.1 MB, free: 1.727 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.4305, allocations: 47.92 kB / 454.1 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1782/0.6087, allocations: 10.49 MB / 464.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/0.6087, allocations: 4 kB / 464.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006795/0.6155, allocations: 4.209 MB / 468.8 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/0.6166, allocations: 0.5445 MB / 469.3 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002693/0.6168, allocations: 35.78 kB / 469.4 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001095/0.6179, allocations: 94 kB / 469.5 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.6184, allocations: 144.1 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/0.6185, allocations: 55.27 kB / 469.7 MB, free: 101.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002241/0.6207, allocations: 1.837 MB / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6207, allocations: 0 / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002365/0.6231, allocations: 0.6942 MB / 472.2 MB, free: 100.5 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.001076/0.6242, allocations: 454.8 kB / 472.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004385/0.6286, allocations: 2.86 MB / 475.5 MB, free: 99.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.6286, allocations: 0 / 475.5 MB, free: 99.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002524/0.6311, allocations: 1.947 MB / 477.5 MB, free: 97.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003063/0.6342, allocations: 0.5529 MB / 478 MB, free: 97.66 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01113/0.6454, allocations: 8.773 MB / 486.8 MB, free: 89.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001784/0.6472, allocations: 2.635 MB / 489.4 MB, free: 86.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001743/0.6489, allocations: 0.5005 MB / 489.9 MB, free: 86.19 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/0.6494, allocations: 163.4 kB / 490.1 MB, free: 86.03 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.6494, allocations: 0 / 490.1 MB, free: 86.03 MB / 382.1 MB Notification: Performance of Templates: time 0.05271/0.7021, allocations: 35.2 MB / 0.513 GB, free: 50.79 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile (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)