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.007893/0.0079, allocations: 104.7 kB / 15.74 MB, free: 6.035 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.001846/0.001846, allocations: 200.3 kB / 16.68 MB, free: 5.953 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.403/1.403, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001159/0.001159, allocations: 51 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09145, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01459/0.1061, allocations: 12.82 MB / 386 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008555/0.1147, allocations: 4.291 MB / 390.3 MB, free: 112 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001892/0.1167, allocations: 63.75 kB / 390.4 MB, free: 48 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0027/0.1194, allocations: 1.014 MB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004902/0.1243, allocations: 1.324 MB / 392.7 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002182/0.1265, allocations: 0.8612 MB / 393.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005167/0.1317, allocations: 4.043 MB / 397.6 MB, free: 8.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003623/0.1353, allocations: 3.18 MB / 400.8 MB, free: 5.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002559/0.1379, allocations: 1.893 MB / 402.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002985/0.1409, allocations: 2.117 MB / 404.8 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006792/0.1416, allocations: 0.5078 MB / 405.3 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001298/0.1429, allocations: 0.7146 MB / 406 MB, free: 280 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009188/0.1438, allocations: 1.138 MB / 407.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002111/0.1459, allocations: 2.124 MB / 409.3 MB, free: 13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006583/0.1526, allocations: 6.734 MB / 416 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.1526, allocations: 0 / 416 MB, free: 6.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.659e-06/0.1526, allocations: 0 / 416 MB, free: 6.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001542/0.1528, allocations: 7.938 kB / 416 MB, free: 6.238 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.01179/0.1646, allocations: 4.402 MB / 420.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1646, allocations: 11.89 kB / 420.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004229/0.1688, allocations: 0.8085 MB / 421.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00389/0.1728, allocations: 2.323 MB / 423.6 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.1729, allocations: 234.6 kB / 423.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000461/0.1734, allocations: 320 kB / 424.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007508/0.1809, allocations: 4.254 MB / 428.4 MB, free: 9.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.991e-05/0.181, allocations: 3.906 kB / 428.4 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002914/0.1813, allocations: 136 kB / 428.5 MB, free: 9.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001429/0.1815, allocations: 142.2 kB / 428.6 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006339/0.1878, allocations: 3.647 MB / 432.3 MB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/0.2083, allocations: 13.34 MB / 445.6 MB, free: 8.082 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006294/0.2146, allocations: 6.857 MB / 452.5 MB, free: 336 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1816/0.3963, allocations: 1.409 MB / 453.9 MB, free: 68.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006266/0.4026, allocations: 3.625 MB / 457.5 MB, free: 67.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.097e-05/0.4026, allocations: 45.53 kB / 457.6 MB, free: 67.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.146e-06/0.4027, allocations: 0 / 457.6 MB, free: 67.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01451/0.4172, allocations: 6.635 MB / 464.2 MB, free: 64.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.4173, allocations: 65.84 kB / 464.3 MB, free: 64.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003497/0.4208, allocations: 1.865 MB / 466.1 MB, free: 63.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001907/0.421, allocations: 51.11 kB / 466.2 MB, free: 63.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008825/0.4219, allocations: 1.417 MB / 467.6 MB, free: 62.24 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004049/0.4223, allocations: 0.4919 MB / 468.1 MB, free: 61.86 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005073/0.4228, allocations: 303.3 kB / 468.4 MB, free: 61.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.811e-05/0.4229, allocations: 301.1 kB / 468.7 MB, free: 61.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.4243, allocations: 0.7601 MB / 469.4 MB, free: 61.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.4257, allocations: 1.223 MB / 470.7 MB, free: 60.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00252/0.4283, allocations: 2.119 MB / 472.8 MB, free: 58.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.808e-06/0.4283, allocations: 3.969 kB / 472.8 MB, free: 58.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004367/0.4327, allocations: 2.655 MB / 475.4 MB, free: 57.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.957e-05/0.4327, allocations: 11.81 kB / 475.4 MB, free: 57.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.4327, allocations: 15.81 kB / 475.5 MB, free: 57.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001213/0.434, allocations: 0.4903 MB / 475.9 MB, free: 57.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.4353, allocations: 390.9 kB / 476.3 MB, free: 57.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006723/0.442, allocations: 6.926 MB / 483.3 MB, free: 52.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.4435, allocations: 82.77 kB / 483.3 MB, free: 52.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/0.4437, allocations: 72.33 kB / 483.4 MB, free: 52.2 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.001649/0.4453, allocations: 1.046 MB / 484.5 MB, free: 51.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003288/0.4457, allocations: 193.8 kB / 484.6 MB, free: 51.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003446/0.4491, allocations: 2.506 MB / 487.1 MB, free: 49.06 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.909e-06/0.4491, allocations: 15.94 kB / 487.2 MB, free: 49.05 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.4491, allocations: 8 kB / 487.2 MB, free: 49.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.279e-05/0.4492, allocations: 8.844 kB / 487.2 MB, free: 49.03 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006883/0.4561, allocations: 5.519 MB / 492.7 MB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4561, allocations: 4 kB / 492.7 MB, free: 43.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009152/0.457, allocations: 223.9 kB / 492.9 MB, free: 43.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001105/0.4581, allocations: 0.4886 MB / 493.4 MB, free: 42.68 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.676e-05/0.4582, allocations: 32.61 kB / 493.4 MB, free: 42.64 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007618/0.4659, allocations: 11.42 MB / 0.493 GB, free: 30.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4659, allocations: 4.031 kB / 0.493 GB, free: 30.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004454/0.4703, allocations: 3.558 MB / 0.4965 GB, free: 26.93 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007954/0.4711, allocations: 458.6 kB / 0.4969 GB, free: 26.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000403/0.4716, allocations: 32 kB / 0.497 GB, free: 26.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009617/0.4725, allocations: 67.95 kB / 0.497 GB, free: 26.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002378/0.4728, allocations: 119.9 kB / 0.4972 GB, free: 26.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.732e-05/0.4729, allocations: 36 kB / 0.4972 GB, free: 26.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001597/0.4745, allocations: 1.289 MB / 0.4984 GB, free: 24.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4745, allocations: 0 / 0.4984 GB, free: 24.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001969/0.4764, allocations: 0.5925 MB / 0.499 GB, free: 24.34 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.0002995/0.4768, allocations: 154.9 kB / 0.4992 GB, free: 24.19 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003675/0.4804, allocations: 2.411 MB / 0.5015 GB, free: 21.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.4805, allocations: 4 kB / 0.5015 GB, free: 21.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.4826, allocations: 1.712 MB / 0.5032 GB, free: 19.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002646/0.4853, allocations: 0.5112 MB / 0.5037 GB, free: 19.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01065/0.4959, allocations: 5.94 MB / 0.5095 GB, free: 13.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002601/0.4986, allocations: 2.367 MB / 0.5118 GB, free: 11.12 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001589/0.5002, allocations: 412.8 kB / 0.5122 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005002/0.5007, allocations: 127.4 kB / 0.5123 GB, free: 10.59 MB / 382.1 MB Notification: Performance of SimCode: time 1.482e-06/0.5007, allocations: 0 / 0.5123 GB, free: 10.59 MB / 382.1 MB Notification: Performance of Templates: time 0.05288/0.5536, allocations: 31.53 MB / 0.5431 GB, free: 11.03 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)