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.005685/0.005684, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00124/0.00124, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.415/1.415, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001186/0.001186, allocations: 54.2 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08736/0.08856, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01437/0.103, allocations: 12.81 MB / 386 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008647/0.1117, allocations: 4.283 MB / 390.3 MB, free: 112 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001588/0.1133, allocations: 67.75 kB / 390.4 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002274/0.1156, allocations: 1.01 MB / 391.4 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003159/0.1188, allocations: 1.332 MB / 392.7 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001747/0.1206, allocations: 0.8651 MB / 393.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004081/0.1247, allocations: 4.043 MB / 397.6 MB, free: 8.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003423/0.1281, allocations: 3.18 MB / 400.8 MB, free: 5.508 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.1305, allocations: 1.896 MB / 402.7 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002561/0.1331, allocations: 2.117 MB / 404.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005927/0.1337, allocations: 0.5078 MB / 405.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001137/0.1348, allocations: 0.7107 MB / 406 MB, free: 268 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008906/0.1357, allocations: 1.134 MB / 407.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002132/0.1379, allocations: 2.132 MB / 409.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006034/0.1439, allocations: 6.726 MB / 416 MB, free: 6.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1439, allocations: 0 / 416 MB, free: 6.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.1439, allocations: 3.984 kB / 416 MB, free: 6.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.407e-05/0.144, allocations: 0 / 416 MB, free: 6.234 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.009422/0.1535, allocations: 4.401 MB / 420.4 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1535, allocations: 15.89 kB / 420.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004017/0.1575, allocations: 0.8202 MB / 421.2 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003821/0.1614, allocations: 2.311 MB / 423.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.1616, allocations: 234.6 kB / 423.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004794/0.1621, allocations: 316 kB / 424.1 MB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006855/0.1689, allocations: 4.258 MB / 428.4 MB, free: 9.703 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.179e-05/0.169, allocations: 3.906 kB / 428.4 MB, free: 9.699 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003033/0.1693, allocations: 132 kB / 428.5 MB, free: 9.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001663/0.1695, allocations: 142.2 kB / 428.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007004/0.1765, allocations: 3.651 MB / 432.3 MB, free: 5.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02293/0.1995, allocations: 13.33 MB / 445.6 MB, free: 8.078 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006738/0.2063, allocations: 6.865 MB / 452.5 MB, free: 320 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1749/0.3812, allocations: 1.41 MB / 453.9 MB, free: 67.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006116/0.3873, allocations: 3.625 MB / 457.5 MB, free: 66.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.3874, allocations: 47.36 kB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.407e-06/0.3874, allocations: 1.062 kB / 457.6 MB, free: 66.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01282/0.4002, allocations: 6.634 MB / 464.2 MB, free: 63.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.4003, allocations: 70.61 kB / 464.3 MB, free: 63.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.4031, allocations: 1.855 MB / 466.1 MB, free: 62.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001291/0.4032, allocations: 55.14 kB / 466.2 MB, free: 62.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008811/0.4041, allocations: 1.42 MB / 467.6 MB, free: 61.49 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003477/0.4045, allocations: 498.7 kB / 468.1 MB, free: 61.11 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005218/0.405, allocations: 303.5 kB / 468.4 MB, free: 60.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.071e-05/0.4051, allocations: 302.7 kB / 468.7 MB, free: 60.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.4063, allocations: 0.7646 MB / 469.4 MB, free: 60.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/0.4077, allocations: 1.219 MB / 470.7 MB, free: 59.51 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002541/0.4102, allocations: 2.112 MB / 472.8 MB, free: 58.17 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.4102, allocations: 3.969 kB / 472.8 MB, free: 58.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003844/0.4141, allocations: 2.661 MB / 475.4 MB, free: 57.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.821e-05/0.4141, allocations: 11.78 kB / 475.4 MB, free: 57.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.057e-05/0.4142, allocations: 15.78 kB / 475.5 MB, free: 57.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.4153, allocations: 0.4913 MB / 475.9 MB, free: 56.89 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/0.4167, allocations: 387.6 kB / 476.3 MB, free: 56.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006579/0.4232, allocations: 6.928 MB / 483.3 MB, free: 51.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001403/0.4247, allocations: 80.14 kB / 483.3 MB, free: 51.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.4248, allocations: 71.75 kB / 483.4 MB, free: 51.41 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.001529/0.4263, allocations: 1.047 MB / 484.4 MB, free: 50.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/0.4266, allocations: 198.8 kB / 484.6 MB, free: 50.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003315/0.4299, allocations: 2.5 MB / 487.1 MB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.43, allocations: 12 kB / 487.2 MB, free: 48.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.43, allocations: 11.94 kB / 487.2 MB, free: 48.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.43, allocations: 7.969 kB / 487.2 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006729/0.4367, allocations: 5.516 MB / 492.7 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.4367, allocations: 4 kB / 492.7 MB, free: 42.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008948/0.4377, allocations: 227.8 kB / 492.9 MB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00106/0.4387, allocations: 0.4917 MB / 493.4 MB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.888e-05/0.4388, allocations: 31.98 kB / 493.4 MB, free: 41.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007413/0.4462, allocations: 11.41 MB / 0.493 GB, free: 29.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.4463, allocations: 6.438 kB / 0.493 GB, free: 29.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004349/0.4506, allocations: 3.562 MB / 0.4965 GB, free: 26.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007389/0.4514, allocations: 454.6 kB / 0.4969 GB, free: 25.71 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.4516, allocations: 38.5 kB / 0.497 GB, free: 25.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008573/0.4525, allocations: 67.94 kB / 0.497 GB, free: 25.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.4527, allocations: 113 kB / 0.4971 GB, free: 25.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/0.4528, allocations: 39.98 kB / 0.4972 GB, free: 25.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00145/0.4542, allocations: 1.286 MB / 0.4984 GB, free: 24.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4543, allocations: 0 / 0.4984 GB, free: 24.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001806/0.4561, allocations: 0.5898 MB / 0.499 GB, free: 23.59 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.0002586/0.4563, allocations: 161.2 kB / 0.4992 GB, free: 23.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003165/0.4595, allocations: 2.402 MB / 0.5015 GB, free: 21.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4595, allocations: 8.125 kB / 0.5015 GB, free: 21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001875/0.4614, allocations: 1.715 MB / 0.5032 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.001717/0.4631, allocations: 0.5166 MB / 0.5037 GB, free: 18.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008052/0.4712, allocations: 5.927 MB / 0.5095 GB, free: 12.77 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001482/0.4727, allocations: 2.37 MB / 0.5118 GB, free: 10.37 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001371/0.4741, allocations: 412.8 kB / 0.5122 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/0.4744, allocations: 135.4 kB / 0.5123 GB, free: 9.828 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4744, allocations: 0 / 0.5123 GB, free: 9.828 MB / 382.1 MB Notification: Performance of Templates: time 0.05693/0.5314, allocations: 31.54 MB / 0.5431 GB, free: 10.25 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)