Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005435/0.005435, allocations: 101.6 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.00111/0.00111, allocations: 190.7 kB / 16.67 MB, free: 5.969 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.421/1.421, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.00132/0.00132, allocations: 55.09 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09792, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01368/0.1116, allocations: 12.81 MB / 386 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008269/0.1199, allocations: 4.287 MB / 390.3 MB, free: 124 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.1225, allocations: 67.75 kB / 390.4 MB, free: 56 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003285/0.1259, allocations: 0.9746 MB / 391.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004878/0.1308, allocations: 1.278 MB / 392.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002373/0.1331, allocations: 0.8573 MB / 393.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005538/0.1387, allocations: 4.059 MB / 397.5 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004489/0.1432, allocations: 3.18 MB / 400.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.146, allocations: 1.877 MB / 402.6 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003437/0.1494, allocations: 2.113 MB / 404.7 MB, free: 1.598 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001133/0.1506, allocations: 0.5078 MB / 405.2 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.1524, allocations: 0.7146 MB / 405.9 MB, free: 384 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.1535, allocations: 1.134 MB / 407 MB, free: 15.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002238/0.1557, allocations: 2.132 MB / 409.2 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006532/0.1622, allocations: 6.755 MB / 415.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1623, allocations: 0 / 415.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1623, allocations: 3.938 kB / 415.9 MB, free: 6.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001509/0.1625, allocations: 3.938 kB / 415.9 MB, free: 6.312 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.0109/0.1734, allocations: 4.491 MB / 420.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.1734, allocations: 11.89 kB / 420.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004259/0.1777, allocations: 0.8223 MB / 421.3 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003882/0.1816, allocations: 2.34 MB / 423.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.1818, allocations: 230.6 kB / 423.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004837/0.1823, allocations: 332 kB / 424.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.1946, allocations: 4.254 MB / 428.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000138/0.1948, allocations: 0 / 428.4 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008572/0.1957, allocations: 124 kB / 428.5 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002223/0.1959, allocations: 146.2 kB / 428.7 MB, free: 9.391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01118/0.2071, allocations: 3.647 MB / 432.3 MB, free: 5.734 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03528/0.2424, allocations: 13.37 MB / 445.7 MB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006979/0.2494, allocations: 6.861 MB / 452.6 MB, free: 260 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1872/0.4367, allocations: 1.411 MB / 454 MB, free: 67.78 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007083/0.4438, allocations: 3.63 MB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.211e-05/0.4439, allocations: 47.72 kB / 457.6 MB, free: 66.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.827e-06/0.4439, allocations: 2.062 kB / 457.6 MB, free: 66.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01407/0.458, allocations: 6.68 MB / 464.3 MB, free: 63.44 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.961e-05/0.458, allocations: 70.19 kB / 464.4 MB, free: 63.37 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002921/0.461, allocations: 1.861 MB / 466.3 MB, free: 62.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001574/0.4612, allocations: 49.92 kB / 466.3 MB, free: 62.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001056/0.4622, allocations: 1.456 MB / 467.8 MB, free: 61.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004067/0.4626, allocations: 0.5108 MB / 468.3 MB, free: 61.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004742/0.4631, allocations: 303.6 kB / 468.6 MB, free: 61.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.877e-05/0.4632, allocations: 304.8 kB / 468.9 MB, free: 60.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.4643, allocations: 0.7603 MB / 469.6 MB, free: 60.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001336/0.4657, allocations: 1.226 MB / 470.8 MB, free: 59.74 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002361/0.4681, allocations: 2.104 MB / 473 MB, free: 58.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.4681, allocations: 7.906 kB / 473 MB, free: 58.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003963/0.472, allocations: 2.672 MB / 475.6 MB, free: 57.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.484e-05/0.4721, allocations: 11.88 kB / 475.6 MB, free: 57.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.4721, allocations: 19.69 kB / 475.7 MB, free: 57.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001271/0.4734, allocations: 498.5 kB / 476.1 MB, free: 57.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001322/0.4747, allocations: 392.4 kB / 476.5 MB, free: 57.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006721/0.4815, allocations: 6.937 MB / 483.5 MB, free: 51.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.483, allocations: 74.52 kB / 483.5 MB, free: 51.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.4831, allocations: 67.88 kB / 483.6 MB, free: 51.6 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (180): * Single equations (assignments): 178 * Array equations: 0 * 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,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001583/0.4847, allocations: 1.055 MB / 484.7 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003125/0.485, allocations: 206.5 kB / 484.9 MB, free: 50.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003455/0.4885, allocations: 2.493 MB / 487.4 MB, free: 48.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.789e-06/0.4885, allocations: 16 kB / 487.4 MB, free: 48.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.4885, allocations: 10.94 kB / 487.4 MB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.4885, allocations: 11.97 kB / 487.4 MB, free: 48.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006652/0.4952, allocations: 5.529 MB / 492.9 MB, free: 42.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.4952, allocations: 0 / 492.9 MB, free: 42.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008812/0.4961, allocations: 219.7 kB / 493.1 MB, free: 42.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001092/0.4972, allocations: 0.498 MB / 493.6 MB, free: 41.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.842e-05/0.4973, allocations: 43.92 kB / 493.7 MB, free: 41.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007609/0.5049, allocations: 11.4 MB / 0.4932 GB, free: 29.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.505, allocations: 3.938 kB / 0.4933 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004511/0.5095, allocations: 3.581 MB / 0.4967 GB, free: 26.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008361/0.5103, allocations: 467.7 kB / 0.4972 GB, free: 25.72 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/0.5106, allocations: 34.69 kB / 0.4972 GB, free: 25.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008733/0.5115, allocations: 67.94 kB / 0.4973 GB, free: 25.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00027/0.5117, allocations: 113 kB / 0.4974 GB, free: 25.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.728e-05/0.5118, allocations: 43.98 kB / 0.4974 GB, free: 25.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.5134, allocations: 1.286 MB / 0.4987 GB, free: 24.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5135, allocations: 0 / 0.4987 GB, free: 24.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002108/0.5156, allocations: 0.5898 MB / 0.4993 GB, free: 23.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003137/0.5159, allocations: 160.2 kB / 0.4994 GB, free: 23.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003648/0.5195, allocations: 2.405 MB / 0.5018 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.5196, allocations: 1.812 kB / 0.5018 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002117/0.5217, allocations: 1.731 MB / 0.5035 GB, free: 19.22 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.5241, allocations: 0.5087 MB / 0.504 GB, free: 18.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009287/0.5334, allocations: 6.02 MB / 0.5098 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.5351, allocations: 2.37 MB / 0.5122 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001412/0.5365, allocations: 416.8 kB / 0.5126 GB, free: 9.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003517/0.5369, allocations: 134.6 kB / 0.5127 GB, free: 9.727 MB / 382.1 MB Notification: Performance of SimCode: time 1.142e-06/0.5369, allocations: 0 / 0.5127 GB, free: 9.727 MB / 382.1 MB Notification: Performance of Templates: time 0.04982/0.5867, allocations: 31.53 MB / 0.5435 GB, free: 10.16 MB / 414.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)