Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.001184/0.001184, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001034/0.001034, allocations: 191.8 kB / 16.25 MB, free: 6.633 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.437/1.437, allocations: 205.1 MB / 222.1 MB, free: 4.723 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.001326/0.001326, allocations: 52.34 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2806, allocations: 46.62 MB / 324.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02552/0.3062, allocations: 23.72 MB / 348.6 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01687/0.3231, allocations: 7.001 MB / 355.6 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006731/0.33, allocations: 123.5 kB / 355.7 MB, free: 5.172 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006096/0.3361, allocations: 1.348 MB / 357 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009051/0.3452, allocations: 2.036 MB / 359.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005006/0.3502, allocations: 1.326 MB / 360.4 MB, free: 452 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01216/0.3624, allocations: 7.305 MB / 367.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01075/0.3732, allocations: 5.474 MB / 373.2 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006964/0.3802, allocations: 3.095 MB / 376.3 MB, free: 456 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007518/0.3877, allocations: 3.833 MB / 380.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00337/0.3912, allocations: 0.8672 MB / 381 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005223/0.3964, allocations: 1.308 MB / 382.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003684/0.4001, allocations: 2.119 MB / 384.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006328/0.4065, allocations: 3.777 MB / 388.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01182/0.4183, allocations: 11.33 MB / 399.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4183, allocations: 0 / 399.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4184, allocations: 0 / 399.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003272/0.4187, allocations: 0 / 399.5 MB, free: 9.137 MB / 334.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.02076/0.4395, allocations: 7.407 MB / 406.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.246e-05/0.4395, allocations: 12.02 kB / 406.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006216/0.4457, allocations: 1.219 MB / 408.1 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007976/0.4537, allocations: 3.682 MB / 411.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004108/0.4542, allocations: 440 kB / 412.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001371/0.4556, allocations: 0.5583 MB / 412.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01481/0.4704, allocations: 7.288 MB / 420.1 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001288/0.4705, allocations: 11.84 kB / 420.1 MB, free: 4.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005972/0.4712, allocations: 232 kB / 420.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002621/0.4714, allocations: 263.3 kB / 420.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/0.4832, allocations: 6.131 MB / 426.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.042/0.5252, allocations: 23.79 MB / 450.5 MB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1648/0.6901, allocations: 8.741 MB / 459.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006114/0.6963, allocations: 2.381 MB / 461.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01416/0.7105, allocations: 7.032 MB / 468.7 MB, free: 96.65 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.006e-05/0.7105, allocations: 56.47 kB / 468.7 MB, free: 96.59 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.14e-06/0.7106, allocations: 3.625 kB / 468.7 MB, free: 96.59 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03052/0.7411, allocations: 13.93 MB / 482.7 MB, free: 90.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.7412, allocations: 78.66 kB / 482.7 MB, free: 90.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005187/0.7464, allocations: 3.487 MB / 486.2 MB, free: 87.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003133/0.7467, allocations: 73.7 kB / 486.3 MB, free: 87.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.7481, allocations: 2.673 MB / 489 MB, free: 84.88 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007129/0.7488, allocations: 0.9692 MB / 489.9 MB, free: 83.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.7499, allocations: 0.6333 MB / 490.6 MB, free: 83.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.936e-05/0.75, allocations: 301.1 kB / 490.9 MB, free: 82.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002264/0.7523, allocations: 1.571 MB / 492.4 MB, free: 81.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002672/0.7549, allocations: 2.773 MB / 495.2 MB, free: 78.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004972/0.7599, allocations: 4.625 MB / 499.8 MB, free: 72.92 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.904e-05/0.76, allocations: 16 kB / 499.9 MB, free: 72.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007974/0.768, allocations: 5.518 MB / 0.4935 GB, free: 67.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.93e-05/0.768, allocations: 21.25 kB / 0.4936 GB, free: 67.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.779e-05/0.7681, allocations: 40 kB / 0.4936 GB, free: 67.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001453/0.7696, allocations: 0.6944 MB / 0.4943 GB, free: 66.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002821/0.7724, allocations: 0.8619 MB / 0.4951 GB, free: 65.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00774/0.7801, allocations: 10.52 MB / 0.5054 GB, free: 54.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003952/0.7841, allocations: 223.2 kB / 0.5056 GB, free: 54.39 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005617/0.7847, allocations: 168 kB / 0.5058 GB, free: 54.23 MB / 382.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.003624/0.7883, allocations: 1.621 MB / 0.5073 GB, free: 52.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.7894, allocations: 383.3 kB / 0.5077 GB, free: 52.21 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006766/0.7962, allocations: 4.549 MB / 0.5121 GB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.763e-05/0.7962, allocations: 39.92 kB / 0.5122 GB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.7962, allocations: 8 kB / 0.5122 GB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.137e-05/0.7963, allocations: 11.95 kB / 0.5122 GB, free: 47.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.812, allocations: 10.04 MB / 0.522 GB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.8121, allocations: 4 kB / 0.522 GB, free: 37.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001987/0.8141, allocations: 0.5037 MB / 0.5225 GB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001701/0.8158, allocations: 0.7506 MB / 0.5232 GB, free: 35.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002401/0.816, allocations: 79.97 kB / 0.5233 GB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009947/0.826, allocations: 14.27 MB / 0.5372 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.826, allocations: 4 kB / 0.5372 GB, free: 20.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009934/0.836, allocations: 6.676 MB / 0.5438 GB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002138/0.8381, allocations: 0.7813 MB / 0.5445 GB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/0.8392, allocations: 64.11 kB / 0.5446 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002508/0.8417, allocations: 171.9 kB / 0.5448 GB, free: 12.83 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006201/0.8423, allocations: 217.7 kB / 0.545 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001884/0.8425, allocations: 79.98 kB / 0.545 GB, free: 12.54 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004242/0.8468, allocations: 2.357 MB / 0.5473 GB, free: 10.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8468, allocations: 0 / 0.5473 GB, free: 10.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00505/0.8518, allocations: 1.108 MB / 0.5484 GB, free: 9.094 MB / 382.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.0007755/0.8526, allocations: 272 kB / 0.5487 GB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01359/0.8662, allocations: 6.706 MB / 0.5552 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/0.8663, allocations: 1.875 kB / 0.5552 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004349/0.8706, allocations: 2.863 MB / 0.558 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005549/0.8762, allocations: 0.8948 MB / 0.5589 GB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/0.898, allocations: 12.99 MB / 0.5716 GB, free: 1.121 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0043/0.9023, allocations: 3.502 MB / 0.575 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003538/0.9059, allocations: 0.8522 MB / 0.5758 GB, free: 12.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007775/0.9067, allocations: 263.3 kB / 0.5761 GB, free: 12.47 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.9067, allocations: 0 / 0.5761 GB, free: 12.47 MB / 414.1 MB Notification: Performance of Templates: time 0.2756/1.182, allocations: 54.57 MB / 0.6294 GB, free: 126.1 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)