Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.001162/0.001163, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.37/1.37, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.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.001127/0.001127, allocations: 51.92 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09508/0.09622, allocations: 46.62 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02596/0.1222, allocations: 23.72 MB / 349.7 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01854/0.1408, allocations: 7.036 MB / 356.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005493/0.1464, allocations: 123.5 kB / 356.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005526/0.152, allocations: 1.344 MB / 358.2 MB, free: 4.531 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009296/0.1613, allocations: 2.055 MB / 360.2 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004912/0.1662, allocations: 1.342 MB / 361.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01052/0.1767, allocations: 7.765 MB / 369.3 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007896/0.1847, allocations: 4.554 MB / 373.9 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005962/0.1907, allocations: 2.658 MB / 376.6 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2078/0.3985, allocations: 3.574 MB / 380.1 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003254/0.4018, allocations: 0.5118 MB / 380.6 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004568/0.4063, allocations: 0.9604 MB / 381.6 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003395/0.4098, allocations: 1.755 MB / 383.4 MB, free: 17.38 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01092/0.4207, allocations: 3.383 MB / 386.7 MB, free: 17.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01964/0.4404, allocations: 11.09 MB / 397.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.161e-05/0.4405, allocations: 0 / 397.8 MB, free: 14.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4405, allocations: 5.5 kB / 397.8 MB, free: 14.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004521/0.4409, allocations: 2.719 kB / 397.8 MB, free: 14.74 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0282/0.4692, allocations: 7.401 MB / 405.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.4692, allocations: 9.562 kB / 405.2 MB, free: 10.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008388/0.4776, allocations: 1.223 MB / 406.5 MB, free: 9.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.4888, allocations: 3.683 MB / 410.2 MB, free: 7.457 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004703/0.4893, allocations: 436.4 kB / 410.6 MB, free: 7.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00297/0.4923, allocations: 0.5521 MB / 411.1 MB, free: 7.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02248/0.5148, allocations: 7.291 MB / 418.4 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001849/0.515, allocations: 19.64 kB / 418.4 MB, free: 2.848 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008472/0.5159, allocations: 233.9 kB / 418.7 MB, free: 2.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002797/0.5162, allocations: 257.3 kB / 418.9 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/0.5304, allocations: 6.132 MB / 425.1 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05692/0.5873, allocations: 23.8 MB / 448.9 MB, free: 5.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01032/0.5977, allocations: 8.744 MB / 457.6 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004514/0.6022, allocations: 2.38 MB / 460 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01434/0.6166, allocations: 7.026 MB / 467 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.6167, allocations: 63.84 kB / 467.1 MB, free: 2.719 MB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 4.178e-06/0.6167, allocations: 0 / 467.1 MB, free: 2.719 MB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03797/0.6547, allocations: 13.91 MB / 481 MB, free: 4.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.6547, allocations: 81.59 kB / 481.1 MB, free: 4.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007865/0.6626, allocations: 3.494 MB / 484.6 MB, free: 1.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006141/0.6633, allocations: 73.7 kB / 484.6 MB, free: 1.012 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002357/0.6656, allocations: 2.675 MB / 487.3 MB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001498/0.6672, allocations: 0.9621 MB / 488.3 MB, free: 13.36 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001844/0.669, allocations: 0.6443 MB / 488.9 MB, free: 12.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.999e-05/0.6691, allocations: 301.1 kB / 489.2 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003115/0.6722, allocations: 1.561 MB / 490.8 MB, free: 10.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00382/0.6761, allocations: 2.765 MB / 493.5 MB, free: 7.566 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007372/0.6835, allocations: 4.633 MB / 498.2 MB, free: 2.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.502e-05/0.6835, allocations: 12 kB / 498.2 MB, free: 2.512 MB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01212/0.6957, allocations: 5.524 MB / 0.4919 GB, free: 13.14 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.813e-05/0.6958, allocations: 20 kB / 0.4919 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001101/0.6959, allocations: 40 kB / 0.4919 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/0.6979, allocations: 0.6846 MB / 0.4926 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003593/0.7015, allocations: 0.8683 MB / 0.4935 GB, free: 11.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/0.7123, allocations: 9.598 MB / 0.5028 GB, free: 1.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004383/0.7167, allocations: 223.7 kB / 0.5031 GB, free: 1.277 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007751/0.7175, allocations: 170.9 kB / 0.5032 GB, free: 1.113 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,3,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005295/0.7228, allocations: 1.632 MB / 0.5048 GB, free: 15.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001976/0.7248, allocations: 383.3 kB / 0.5052 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00992/0.7348, allocations: 4.563 MB / 0.5096 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.442e-05/0.7349, allocations: 35.98 kB / 0.5097 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.255e-05/0.7349, allocations: 8 kB / 0.5097 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.582e-05/0.7349, allocations: 11.95 kB / 0.5097 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02426/0.7592, allocations: 10.04 MB / 0.5195 GB, free: 272 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.137e-05/0.7593, allocations: 4 kB / 0.5195 GB, free: 268 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002487/0.7618, allocations: 0.5033 MB / 0.52 GB, free: 15.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/0.764, allocations: 0.7511 MB / 0.5207 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000419/0.7644, allocations: 71.91 kB / 0.5208 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01383/0.7783, allocations: 13.04 MB / 0.5335 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/0.7783, allocations: 7.562 kB / 0.5335 GB, free: 1.164 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2213/0.9996, allocations: 6.662 MB / 0.54 GB, free: 154.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003186/1.003, allocations: 0.7814 MB / 0.5408 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00167/1.004, allocations: 61.06 kB / 0.5408 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003478/1.008, allocations: 173.3 kB / 0.541 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007986/1.009, allocations: 211.1 kB / 0.5412 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003947/1.009, allocations: 87.77 kB / 0.5413 GB, free: 154.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007092/1.016, allocations: 2.354 MB / 0.5436 GB, free: 154 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.81e-07/1.016, allocations: 0 / 0.5436 GB, free: 154 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007385/1.024, allocations: 1.115 MB / 0.5447 GB, free: 153.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (238): * Single equations (assignments): 228 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001338/1.025, allocations: 275.6 kB / 0.5449 GB, free: 153.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009268/1.034, allocations: 4.712 MB / 0.5495 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/1.034, allocations: 3.406 kB / 0.5495 GB, free: 151.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005148/1.04, allocations: 2.853 MB / 0.5523 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008448/1.048, allocations: 0.8581 MB / 0.5532 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02422/1.072, allocations: 12.97 MB / 0.5658 GB, free: 142.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004554/1.077, allocations: 3.507 MB / 0.5693 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003609/1.081, allocations: 0.8593 MB / 0.5701 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008836/1.082, allocations: 254.4 kB / 0.5703 GB, free: 139.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/1.082, allocations: 0 / 0.5703 GB, free: 139.3 MB / 446.1 MB Notification: Performance of Templates: time 0.08258/1.164, allocations: 52.59 MB / 0.6217 GB, free: 88.93 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)