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.008752/0.008752, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001315/0.001315, allocations: 190.5 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.494/1.494, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001333/0.001333, allocations: 55.06 kB / 326.6 MB, free: 14.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08907, allocations: 46.63 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01514/0.1042, allocations: 13.56 MB / 386.8 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009159/0.1134, allocations: 4.868 MB / 391.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.1156, allocations: 67.75 kB / 391.7 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003169/0.1188, allocations: 1.068 MB / 392.8 MB, free: 13.61 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.00553/0.1243, allocations: 1.441 MB / 394.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003244/0.1276, allocations: 0.9743 MB / 395.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008427/0.136, allocations: 4.324 MB / 399.5 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005686/0.1418, allocations: 3.296 MB / 402.8 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003743/0.1455, allocations: 2.017 MB / 404.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004126/0.1497, allocations: 2.273 MB / 407.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001478/0.1512, allocations: 0.5312 MB / 407.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002647/0.1538, allocations: 0.9135 MB / 408.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001811/0.1557, allocations: 1.36 MB / 409.9 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004805/0.1605, allocations: 2.349 MB / 412.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009886/0.1704, allocations: 7.341 MB / 419.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1705, allocations: 0 / 419.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1705, allocations: 0 / 419.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001896/0.1707, allocations: 0 / 419.6 MB, free: 2.645 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.0135/0.1842, allocations: 4.976 MB / 424.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1842, allocations: 15.89 kB / 424.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005044/0.1893, allocations: 0.8779 MB / 425.5 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006234/0.1955, allocations: 2.623 MB / 428.1 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/0.1959, allocations: 250.6 kB / 428.3 MB, free: 9.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.1972, allocations: 339.9 kB / 428.7 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01085/0.208, allocations: 4.547 MB / 433.2 MB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.2082, allocations: 7.906 kB / 433.2 MB, free: 4.812 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007159/0.2089, allocations: 136 kB / 433.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001885/0.2091, allocations: 154.7 kB / 433.5 MB, free: 4.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00827/0.2174, allocations: 3.907 MB / 437.4 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02421/0.2417, allocations: 14.01 MB / 451.4 MB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.184/0.4257, allocations: 6.955 MB / 458.4 MB, free: 61.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003838/0.4295, allocations: 1.722 MB / 460.1 MB, free: 61.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008605/0.4382, allocations: 4.24 MB / 464.3 MB, free: 59.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.4382, allocations: 55.64 kB / 464.4 MB, free: 59.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=165): time 3.376e-06/0.4382, allocations: 0 / 464.4 MB, free: 59.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=185): time 0.01658/0.4548, allocations: 7.82 MB / 472.2 MB, free: 55.95 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.4549, allocations: 73.91 kB / 472.3 MB, free: 55.88 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00345/0.4584, allocations: 2.632 MB / 474.9 MB, free: 54.95 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001719/0.4585, allocations: 57.64 kB / 475 MB, free: 54.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007843/0.4593, allocations: 1.61 MB / 476.6 MB, free: 53.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003746/0.4597, allocations: 0.6232 MB / 477.2 MB, free: 53.17 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/0.4602, allocations: 339.8 kB / 477.5 MB, free: 53.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.4603, allocations: 305.1 kB / 477.8 MB, free: 52.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/0.4617, allocations: 0.9046 MB / 478.7 MB, free: 52.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.4631, allocations: 1.312 MB / 480.1 MB, free: 51.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.4659, allocations: 2.346 MB / 482.4 MB, free: 50.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-05/0.466, allocations: 3.562 kB / 482.4 MB, free: 50.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.006463/0.4724, allocations: 3.069 MB / 485.5 MB, free: 48.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.4725, allocations: 11.84 kB / 485.5 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/0.4725, allocations: 7.906 kB / 485.5 MB, free: 48.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.4744, allocations: 0.5595 MB / 486 MB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002286/0.4767, allocations: 440.5 kB / 486.5 MB, free: 48.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009697/0.4864, allocations: 7.561 MB / 494 MB, free: 40.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002164/0.4886, allocations: 83.84 kB / 494.1 MB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002517/0.4889, allocations: 83.97 kB / 494.2 MB, free: 40.74 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.002553/0.4915, allocations: 1.162 MB / 495.4 MB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/0.4923, allocations: 252.8 kB / 495.6 MB, free: 39.32 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006301/0.4986, allocations: 2.875 MB / 498.5 MB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.016e-05/0.4986, allocations: 27.5 kB / 498.5 MB, free: 36.4 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.655e-05/0.4987, allocations: 8 kB / 498.5 MB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.29e-05/0.4987, allocations: 10.27 kB / 498.5 MB, free: 36.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0133/0.512, allocations: 6.342 MB / 0.493 GB, free: 29.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.5121, allocations: 128 / 0.493 GB, free: 29.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/0.5137, allocations: 282.1 kB / 0.4933 GB, free: 29.72 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00166/0.5154, allocations: 0.6149 MB / 0.4939 GB, free: 29.1 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000171/0.5155, allocations: 43.97 kB / 0.494 GB, free: 29.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/0.5249, allocations: 11.45 MB / 0.5051 GB, free: 17.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.525, allocations: 7.219 kB / 0.5051 GB, free: 17.09 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0058/0.5308, allocations: 4.147 MB / 0.5092 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009601/0.5318, allocations: 0.5369 MB / 0.5097 GB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000265/0.532, allocations: 40 kB / 0.5098 GB, free: 12.31 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.5331, allocations: 91.86 kB / 0.5098 GB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003196/0.5334, allocations: 137.7 kB / 0.51 GB, free: 12.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.5336, allocations: 52.84 kB / 0.51 GB, free: 12.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002342/0.5359, allocations: 1.849 MB / 0.5118 GB, free: 10.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5359, allocations: 0 / 0.5118 GB, free: 10.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002036/0.538, allocations: 0.6927 MB / 0.5125 GB, free: 9.488 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.0009569/0.539, allocations: 438.5 kB / 0.5129 GB, free: 9.078 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004113/0.5431, allocations: 2.845 MB / 0.5157 GB, free: 6.211 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5431, allocations: 4 kB / 0.5157 GB, free: 6.207 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002506/0.5456, allocations: 1.957 MB / 0.5176 GB, free: 4.203 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.5477, allocations: 0.5928 MB / 0.5182 GB, free: 3.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009913/0.5577, allocations: 7.028 MB / 0.5251 GB, free: 12.56 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002557/0.5602, allocations: 2.635 MB / 0.5276 GB, free: 9.895 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001718/0.562, allocations: 0.5044 MB / 0.5281 GB, free: 9.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.5625, allocations: 163.4 kB / 0.5283 GB, free: 9.227 MB / 398.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5625, allocations: 0 / 0.5283 GB, free: 9.227 MB / 398.1 MB Notification: Performance of Templates: time 0.0656/0.6281, allocations: 35.7 MB / 0.5631 GB, free: 5.527 MB / 430.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)