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.001053/0.001053, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004909/0.004909, allocations: 170 kB / 16.26 MB, free: 6.613 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.386/1.386, allocations: 205.4 MB / 222.4 MB, free: 5.559 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.0004342/0.0004343, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2047/0.2052, allocations: 47.58 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01269/0.2179, allocations: 12.76 MB / 339.8 MB, free: 6.555 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00882/0.2268, allocations: 4.764 MB / 344.6 MB, free: 1.777 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002211/0.2291, allocations: 71.62 kB / 344.6 MB, free: 1.707 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.232, allocations: 0.8978 MB / 345.5 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004287/0.2363, allocations: 1.248 MB / 346.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002162/0.2384, allocations: 0.9006 MB / 347.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005512/0.244, allocations: 4.628 MB / 352.3 MB, free: 10 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003287/0.2473, allocations: 2.699 MB / 355 MB, free: 7.234 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002012/0.2493, allocations: 1.416 MB / 356.4 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002442/0.2518, allocations: 1.902 MB / 358.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005338/0.2523, allocations: 220 kB / 358.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001583/0.2539, allocations: 0.6009 MB / 359.1 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009075/0.2548, allocations: 0.9494 MB / 360.1 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00213/0.257, allocations: 1.96 MB / 362 MB, free: 160 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00699/0.264, allocations: 6.879 MB / 368.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.264, allocations: 0 / 368.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.264, allocations: 4 kB / 368.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001744/0.2642, allocations: 4 kB / 368.9 MB, free: 9.246 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.01225/0.2765, allocations: 4.217 MB / 373.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.2765, allocations: 12.03 kB / 373.2 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005139/0.2817, allocations: 0.8819 MB / 374 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004564/0.2863, allocations: 2.553 MB / 376.6 MB, free: 1.426 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001869/0.2865, allocations: 254.6 kB / 376.8 MB, free: 1.176 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005855/0.2871, allocations: 339.9 kB / 377.2 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007988/0.2951, allocations: 4.555 MB / 381.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.061e-05/0.2952, allocations: 4 kB / 381.7 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003171/0.2955, allocations: 140 kB / 381.9 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001582/0.2957, allocations: 154.7 kB / 382 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007162/0.3028, allocations: 3.93 MB / 386 MB, free: 8.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0225/0.3254, allocations: 14.27 MB / 400.2 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007855/0.3333, allocations: 6.99 MB / 407.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003022/0.3363, allocations: 1.704 MB / 408.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007605/0.3439, allocations: 4.249 MB / 413.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.069e-05/0.344, allocations: 51.88 kB / 413.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=165): time 3.997e-06/0.344, allocations: 0 / 413.2 MB, free: 11.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=185): time 0.01714/0.3612, allocations: 7.917 MB / 421.1 MB, free: 3.492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3613, allocations: 73.41 kB / 421.2 MB, free: 3.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003437/0.3647, allocations: 2.627 MB / 423.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.3649, allocations: 57.7 kB / 423.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001128/0.366, allocations: 1.623 MB / 425.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004627/0.3665, allocations: 0.6159 MB / 426.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002234/0.3667, allocations: 157.6 kB / 426.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.3668, allocations: 309.1 kB / 426.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/0.3684, allocations: 0.9175 MB / 427.5 MB, free: 13.04 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001859/0.3703, allocations: 1.325 MB / 428.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003605/0.3739, allocations: 2.375 MB / 431.2 MB, free: 9.039 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.3739, allocations: 4 kB / 431.2 MB, free: 9.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.00552/0.3794, allocations: 3.096 MB / 434.3 MB, free: 5.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.3795, allocations: 11.98 kB / 434.3 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.3795, allocations: 12 kB / 434.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001519/0.381, allocations: 0.5519 MB / 434.9 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001782/0.3828, allocations: 447.3 kB / 435.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009034/0.3919, allocations: 6.945 MB / 442.3 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001701/0.3936, allocations: 91.94 kB / 442.3 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.3938, allocations: 75.98 kB / 442.4 MB, free: 13.52 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.002258/0.396, allocations: 1.161 MB / 443.6 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005715/0.3966, allocations: 248.9 kB / 443.8 MB, free: 12.1 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00588/0.4025, allocations: 2.921 MB / 446.7 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.465e-05/0.4026, allocations: 20 kB / 446.8 MB, free: 9.137 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.4026, allocations: 11.98 kB / 446.8 MB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.869e-05/0.4026, allocations: 15.91 kB / 446.8 MB, free: 9.109 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.4135, allocations: 6.365 MB / 453.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.4135, allocations: 0 / 453.2 MB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/0.4148, allocations: 283.6 kB / 453.4 MB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001599/0.4164, allocations: 0.6162 MB / 454.1 MB, free: 1.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.4166, allocations: 59.91 kB / 454.1 MB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1765/0.5931, allocations: 10.48 MB / 464.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.5931, allocations: 2.156 kB / 464.6 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006392/0.5995, allocations: 4.209 MB / 468.8 MB, free: 101.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009414/0.6005, allocations: 0.5418 MB / 469.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002658/0.6008, allocations: 37.39 kB / 469.4 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.6019, allocations: 93.84 kB / 469.5 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003109/0.6022, allocations: 140.4 kB / 469.6 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001041/0.6023, allocations: 50.05 kB / 469.7 MB, free: 101.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002033/0.6043, allocations: 1.842 MB / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6044, allocations: 0 / 471.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001902/0.6063, allocations: 0.6984 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.0009626/0.6072, allocations: 451.9 kB / 472.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004186/0.6114, allocations: 2.866 MB / 475.5 MB, free: 99.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.6115, allocations: 0 / 475.5 MB, free: 99.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002462/0.6139, allocations: 1.944 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.002718/0.6167, allocations: 0.5577 MB / 478 MB, free: 97.68 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009595/0.6263, allocations: 8.775 MB / 486.8 MB, free: 89.37 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001703/0.628, allocations: 2.62 MB / 489.4 MB, free: 86.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001613/0.6296, allocations: 0.5044 MB / 489.9 MB, free: 86.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004225/0.63, allocations: 175.3 kB / 490.1 MB, free: 86.04 MB / 382.1 MB Notification: Performance of SimCode: time 1.553e-06/0.6301, allocations: 4 kB / 490.1 MB, free: 86.03 MB / 382.1 MB Notification: Performance of Templates: time 0.04833/0.6784, allocations: 35.2 MB / 0.513 GB, free: 50.8 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)