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.007571/0.007571, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001668/0.001668, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.487/1.487, allocations: 205.1 MB / 222.6 MB, free: 4.371 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.001218/0.001218, allocations: 46.95 kB / 326.6 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.08246, allocations: 46.63 MB / 373.2 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01564/0.09814, allocations: 13.57 MB / 386.8 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009108/0.1073, allocations: 4.864 MB / 391.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002027/0.1094, allocations: 71.75 kB / 391.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002961/0.1124, allocations: 1.068 MB / 392.8 MB, free: 13.6 MB / 334.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.004268/0.1167, allocations: 1.445 MB / 394.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002677/0.1194, allocations: 0.9742 MB / 395.2 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007212/0.1266, allocations: 4.324 MB / 399.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005075/0.1317, allocations: 3.292 MB / 402.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003431/0.1351, allocations: 2.009 MB / 404.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003932/0.1391, allocations: 2.277 MB / 407.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001319/0.1404, allocations: 0.5312 MB / 407.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.1429, allocations: 0.9174 MB / 408.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.1446, allocations: 1.356 MB / 409.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003278/0.1479, allocations: 2.353 MB / 412.3 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008254/0.1562, allocations: 7.337 MB / 419.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1562, allocations: 0 / 419.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1562, allocations: 0 / 419.6 MB, free: 2.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000177/0.1564, allocations: 4 kB / 419.6 MB, free: 2.633 MB / 350.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.01391/0.1703, allocations: 4.976 MB / 424.6 MB, free: 13.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.1704, allocations: 12.03 kB / 424.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004309/0.1747, allocations: 0.874 MB / 425.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00479/0.1795, allocations: 2.627 MB / 428.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002157/0.1798, allocations: 254.6 kB / 428.3 MB, free: 9.734 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006396/0.1804, allocations: 335.9 kB / 428.7 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008048/0.1885, allocations: 4.543 MB / 433.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/0.1886, allocations: 7.906 kB / 433.2 MB, free: 4.809 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003102/0.1889, allocations: 140 kB / 433.4 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001578/0.189, allocations: 154.7 kB / 433.5 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00671/0.1958, allocations: 3.907 MB / 437.4 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0213/0.2171, allocations: 14 MB / 451.4 MB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1917/0.4088, allocations: 6.96 MB / 458.4 MB, free: 62.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003933/0.4128, allocations: 1.723 MB / 460.1 MB, free: 62.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00814/0.421, allocations: 4.24 MB / 464.3 MB, free: 60.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.421, allocations: 52.75 kB / 464.4 MB, free: 60.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 4.339e-06/0.4211, allocations: 1.094 kB / 464.4 MB, free: 60.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01776/0.4388, allocations: 7.827 MB / 472.2 MB, free: 56.88 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.4389, allocations: 71.28 kB / 472.3 MB, free: 56.81 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.443, allocations: 2.625 MB / 474.9 MB, free: 55.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001507/0.4432, allocations: 57.64 kB / 475 MB, free: 55.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008457/0.444, allocations: 1.618 MB / 476.6 MB, free: 54.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003964/0.4444, allocations: 0.6195 MB / 477.2 MB, free: 54.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005027/0.445, allocations: 336.7 kB / 477.5 MB, free: 53.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.706e-05/0.445, allocations: 305.1 kB / 477.8 MB, free: 53.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.4464, allocations: 0.9041 MB / 478.7 MB, free: 53.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001481/0.4479, allocations: 1.308 MB / 480 MB, free: 52.48 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002986/0.4509, allocations: 2.347 MB / 482.4 MB, free: 51.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4509, allocations: 2.688 kB / 482.4 MB, free: 51.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005037/0.4559, allocations: 3.071 MB / 485.5 MB, free: 49.37 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.403e-05/0.456, allocations: 9.938 kB / 485.5 MB, free: 49.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.992e-05/0.456, allocations: 15.28 kB / 485.5 MB, free: 49.37 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.4574, allocations: 0.5641 MB / 486.1 MB, free: 49.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00165/0.4591, allocations: 435 kB / 486.5 MB, free: 48.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00777/0.4668, allocations: 7.572 MB / 494.1 MB, free: 42.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/0.4687, allocations: 83.94 kB / 494.1 MB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002456/0.4689, allocations: 71.98 kB / 494.2 MB, free: 41.86 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.002112/0.4711, allocations: 1.172 MB / 495.4 MB, free: 40.68 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008301/0.4719, allocations: 252.8 kB / 495.6 MB, free: 40.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005275/0.4772, allocations: 2.878 MB / 498.5 MB, free: 37.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-05/0.4772, allocations: 20 kB / 498.5 MB, free: 37.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/0.4773, allocations: 8 kB / 498.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-05/0.4773, allocations: 7.969 kB / 498.5 MB, free: 37.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01076/0.488, allocations: 6.334 MB / 0.493 GB, free: 31.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/0.4881, allocations: 12.11 kB / 0.493 GB, free: 31.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.4893, allocations: 271.6 kB / 0.4933 GB, free: 30.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.4908, allocations: 0.6158 MB / 0.4939 GB, free: 30.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001477/0.491, allocations: 47.97 kB / 0.494 GB, free: 30.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01015/0.5011, allocations: 11.44 MB / 0.5051 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.5011, allocations: 3.938 kB / 0.5051 GB, free: 18.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006196/0.5073, allocations: 4.155 MB / 0.5092 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/0.5085, allocations: 0.5369 MB / 0.5097 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005771/0.509, allocations: 40 kB / 0.5097 GB, free: 13.42 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/0.5106, allocations: 91.86 kB / 0.5098 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/0.5109, allocations: 134.6 kB / 0.51 GB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.5111, allocations: 51.98 kB / 0.51 GB, free: 13.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002606/0.5137, allocations: 1.85 MB / 0.5118 GB, free: 11.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5137, allocations: 0 / 0.5118 GB, free: 11.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002435/0.5161, allocations: 0.6903 MB / 0.5125 GB, free: 10.6 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.001062/0.5172, allocations: 447.2 kB / 0.5129 GB, free: 10.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004595/0.5218, allocations: 2.843 MB / 0.5157 GB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5218, allocations: 0 / 0.5157 GB, free: 7.309 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002791/0.5246, allocations: 1.959 MB / 0.5176 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003363/0.528, allocations: 0.5968 MB / 0.5182 GB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01269/0.5407, allocations: 7.032 MB / 0.5251 GB, free: 13.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003085/0.5438, allocations: 2.627 MB / 0.5276 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001862/0.5457, allocations: 0.4966 MB / 0.5281 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000681/0.5464, allocations: 167.4 kB / 0.5283 GB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.5464, allocations: 0 / 0.5283 GB, free: 10.32 MB / 398.1 MB Notification: Performance of Templates: time 0.0645/0.6109, allocations: 35.71 MB / 0.5631 GB, free: 6.617 MB / 430.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)