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.006324/0.006323, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001207/0.001207, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.361/1.361, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001327/0.001327, allocations: 47.94 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09031/0.09164, allocations: 46.61 MB / 373.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.2059/0.2976, allocations: 13.56 MB / 386.8 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01079/0.3084, allocations: 4.874 MB / 391.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004063/0.3125, allocations: 67.69 kB / 391.7 MB, free: 2.277 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00552/0.3181, allocations: 1.074 MB / 392.8 MB, free: 1.699 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.006782/0.3249, allocations: 1.437 MB / 394.2 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002788/0.3277, allocations: 0.9708 MB / 395.2 MB, free: 160 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007679/0.3354, allocations: 4.327 MB / 399.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004742/0.3402, allocations: 3.3 MB / 402.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004288/0.3445, allocations: 2.017 MB / 404.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005015/0.3495, allocations: 2.27 MB / 407.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.3508, allocations: 0.5339 MB / 407.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002964/0.3537, allocations: 0.9108 MB / 408.5 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001378/0.3551, allocations: 1.366 MB / 409.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003381/0.3585, allocations: 2.345 MB / 412.3 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008728/0.3673, allocations: 7.344 MB / 419.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3673, allocations: 0 / 419.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3673, allocations: 0 / 419.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002029/0.3675, allocations: 0 / 419.6 MB, free: 1.152 MB / 334.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.01335/0.3809, allocations: 4.973 MB / 424.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.3809, allocations: 15.97 kB / 424.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004281/0.3852, allocations: 0.8741 MB / 425.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00524/0.3905, allocations: 2.619 MB / 428.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.3907, allocations: 258.6 kB / 428.3 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005732/0.3913, allocations: 335.9 kB / 428.7 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009113/0.4004, allocations: 4.547 MB / 433.2 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.372e-05/0.4005, allocations: 11.84 kB / 433.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003416/0.4009, allocations: 136 kB / 433.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001772/0.4011, allocations: 154.7 kB / 433.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007314/0.4084, allocations: 3.895 MB / 437.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02272/0.4311, allocations: 14.01 MB / 451.4 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007231/0.4384, allocations: 6.978 MB / 458.4 MB, free: 9.043 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00285/0.4413, allocations: 1.728 MB / 460.1 MB, free: 7.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007431/0.4488, allocations: 4.233 MB / 464.3 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/0.4488, allocations: 55.88 kB / 464.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.626e-06/0.4488, allocations: 0 / 464.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01682/0.4657, allocations: 7.831 MB / 472.2 MB, free: 10.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.776e-05/0.4658, allocations: 69.41 kB / 472.3 MB, free: 10.87 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003646/0.4694, allocations: 2.627 MB / 474.9 MB, free: 8.219 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001521/0.4696, allocations: 53.7 kB / 475 MB, free: 8.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.4708, allocations: 1.615 MB / 476.6 MB, free: 6.523 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005068/0.4713, allocations: 0.6198 MB / 477.2 MB, free: 5.895 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005626/0.4718, allocations: 335.4 kB / 477.5 MB, free: 5.562 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.472, allocations: 309.1 kB / 477.8 MB, free: 5.258 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4735, allocations: 0.9058 MB / 478.7 MB, free: 4.352 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001786/0.4753, allocations: 1.306 MB / 480.1 MB, free: 2.895 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003359/0.4787, allocations: 2.348 MB / 482.4 MB, free: 412 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.297e-06/0.4787, allocations: 4 kB / 482.4 MB, free: 408 kB / 398.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005586/0.4843, allocations: 3.069 MB / 485.5 MB, free: 13.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.4844, allocations: 8 kB / 485.5 MB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.034e-05/0.4844, allocations: 12 kB / 485.5 MB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.4859, allocations: 0.5558 MB / 486.1 MB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00173/0.4877, allocations: 439.3 kB / 486.5 MB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009379/0.4971, allocations: 7.579 MB / 494.1 MB, free: 4.445 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/0.499, allocations: 91.91 kB / 494.1 MB, free: 4.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003413/0.4993, allocations: 71.98 kB / 494.2 MB, free: 4.285 MB / 414.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.002224/0.5016, allocations: 1.161 MB / 495.4 MB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000674/0.5023, allocations: 256.8 kB / 495.6 MB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005664/0.5079, allocations: 2.874 MB / 498.5 MB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.062e-05/0.508, allocations: 20 kB / 498.5 MB, free: 15.94 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.843e-05/0.508, allocations: 8 kB / 498.5 MB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/0.508, allocations: 11.95 kB / 498.5 MB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.5202, allocations: 6.344 MB / 0.4931 GB, free: 9.484 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.5202, allocations: 4 kB / 0.4931 GB, free: 9.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001314/0.5215, allocations: 279.7 kB / 0.4933 GB, free: 9.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001704/0.5232, allocations: 0.6083 MB / 0.4939 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001496/0.5234, allocations: 43.98 kB / 0.494 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/0.5354, allocations: 11.44 MB / 0.5051 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5354, allocations: 4.062 kB / 0.5051 GB, free: 12.54 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007454/0.5428, allocations: 4.152 MB / 0.5092 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001643/0.5445, allocations: 0.5408 MB / 0.5097 GB, free: 7.773 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006128/0.5451, allocations: 39.94 kB / 0.5098 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.5465, allocations: 91.98 kB / 0.5098 GB, free: 7.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003678/0.5469, allocations: 137.7 kB / 0.51 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001433/0.5471, allocations: 55.97 kB / 0.51 GB, free: 7.457 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003568/0.5506, allocations: 1.839 MB / 0.5118 GB, free: 5.605 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5507, allocations: 0 / 0.5118 GB, free: 5.605 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003269/0.5539, allocations: 0.6915 MB / 0.5125 GB, free: 4.914 MB / 446.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.001187/0.5551, allocations: 441 kB / 0.5129 GB, free: 4.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005517/0.5607, allocations: 2.85 MB / 0.5157 GB, free: 1.605 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.528e-06/0.5607, allocations: 0 / 0.5157 GB, free: 1.605 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003338/0.564, allocations: 1.958 MB / 0.5176 GB, free: 15.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/0.5672, allocations: 0.6006 MB / 0.5182 GB, free: 15 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01185/0.579, allocations: 7.037 MB / 0.5251 GB, free: 7.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002259/0.5813, allocations: 2.627 MB / 0.5276 GB, free: 5.266 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001576/0.5829, allocations: 0.4967 MB / 0.5281 GB, free: 4.766 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004692/0.5834, allocations: 171.4 kB / 0.5283 GB, free: 4.598 MB / 462.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5834, allocations: 0 / 0.5283 GB, free: 4.598 MB / 462.1 MB Notification: Performance of Templates: time 0.2448/0.8282, allocations: 35.69 MB / 0.5631 GB, free: 147.6 MB / 478.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)