Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001093/0.001093, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001193/0.001193, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 222.1 MB, free: 5.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.0004389/0.0004389, allocations: 16 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2498/0.2502, allocations: 47.59 MB / 326.5 MB, free: 1.512 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.01953/0.2698, allocations: 19.26 MB / 345.7 MB, free: 276 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01358/0.2834, allocations: 6.94 MB / 352.7 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003719/0.2872, allocations: 119.5 kB / 352.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00375/0.291, allocations: 1.154 MB / 353.9 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006948/0.2979, allocations: 2.041 MB / 356 MB, free: 5.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003436/0.3014, allocations: 0.9631 MB / 356.9 MB, free: 5.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00901/0.3104, allocations: 4.837 MB / 361.8 MB, free: 180 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006056/0.3165, allocations: 3.678 MB / 365.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003786/0.3203, allocations: 2.191 MB / 367.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004546/0.3249, allocations: 2.739 MB / 370.4 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001552/0.3265, allocations: 364 kB / 370.7 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002734/0.3292, allocations: 0.6948 MB / 371.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002037/0.3313, allocations: 1.441 MB / 372.9 MB, free: 5 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002119/0.3334, allocations: 1.268 MB / 374.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.3443, allocations: 9.209 MB / 383.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3444, allocations: 0 / 383.3 MB, free: 10.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.3444, allocations: 4 kB / 383.3 MB, free: 10.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003638/0.3448, allocations: 0 / 383.3 MB, free: 10.48 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.01732/0.3621, allocations: 6.289 MB / 389.6 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.3622, allocations: 8.031 kB / 389.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006805/0.369, allocations: 1.23 MB / 390.9 MB, free: 2.867 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008231/0.3773, allocations: 3.617 MB / 394.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003856/0.3777, allocations: 451.3 kB / 394.9 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009838/0.3787, allocations: 0.5468 MB / 395.5 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01227/0.391, allocations: 7.218 MB / 402.7 MB, free: 6.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.3911, allocations: 15.84 kB / 402.7 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005064/0.3916, allocations: 232 kB / 402.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002567/0.3919, allocations: 259.3 kB / 403.2 MB, free: 6.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.4031, allocations: 6.131 MB / 409.3 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04372/0.4468, allocations: 23.89 MB / 433.2 MB, free: 7.754 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008434/0.4553, allocations: 8.756 MB / 442 MB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01165/0.467, allocations: 6.708 MB / 448.7 MB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.297e-05/0.467, allocations: 60.56 kB / 448.7 MB, free: 7.074 MB / 382.1 MB Notification: Performance of pre-optimization done (n=250): time 4.088e-06/0.4671, allocations: 0 / 448.7 MB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=296): time 0.2046/0.6717, allocations: 15.73 MB / 464.5 MB, free: 102.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.6718, allocations: 81.33 kB / 464.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004213/0.676, allocations: 3.408 MB / 467.9 MB, free: 100.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002769/0.6763, allocations: 81.75 kB / 468 MB, free: 100.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.6776, allocations: 2.65 MB / 470.7 MB, free: 98.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006522/0.6783, allocations: 1.01 MB / 471.7 MB, free: 97.96 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.6784, allocations: 78.44 kB / 471.8 MB, free: 97.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001441/0.6786, allocations: 450.9 kB / 472.2 MB, free: 97.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002264/0.6809, allocations: 1.611 MB / 473.8 MB, free: 96.95 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002654/0.6835, allocations: 2.783 MB / 476.6 MB, free: 94.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.6863, allocations: 2.084 MB / 478.7 MB, free: 93.96 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.688e-05/0.6863, allocations: 11.22 kB / 478.7 MB, free: 93.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.008137/0.6944, allocations: 5.618 MB / 484.3 MB, free: 89.97 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.6945, allocations: 20 kB / 484.3 MB, free: 89.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.788e-05/0.6946, allocations: 40 kB / 484.4 MB, free: 89.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001413/0.696, allocations: 0.6894 MB / 485.1 MB, free: 89.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003105/0.6991, allocations: 0.9009 MB / 486 MB, free: 88.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007541/0.7067, allocations: 9.713 MB / 495.7 MB, free: 78.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/0.7101, allocations: 248.8 kB / 495.9 MB, free: 77.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/0.7105, allocations: 168 kB / 496.1 MB, free: 77.68 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 (437): * Single equations (assignments): 427 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002871/0.7133, allocations: 1.619 MB / 497.7 MB, free: 76.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001032/0.7144, allocations: 395.1 kB / 498.1 MB, free: 75.66 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007063/0.7214, allocations: 4.717 MB / 0.491 GB, free: 70.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.455e-05/0.7215, allocations: 39.98 kB / 0.4911 GB, free: 70.79 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.7215, allocations: 8 kB / 0.4911 GB, free: 70.78 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.668e-05/0.7216, allocations: 11.95 kB / 0.4911 GB, free: 70.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/0.737, allocations: 10.46 MB / 0.5013 GB, free: 60.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/0.7371, allocations: 8 kB / 0.5013 GB, free: 60.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002224/0.7393, allocations: 0.5463 MB / 0.5018 GB, free: 59.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001725/0.741, allocations: 0.7428 MB / 0.5026 GB, free: 58.78 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003014/0.7414, allocations: 75.97 kB / 0.5026 GB, free: 58.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009868/0.7512, allocations: 13.21 MB / 0.5155 GB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.7513, allocations: 4 kB / 0.5155 GB, free: 44.7 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009883/0.7612, allocations: 7.681 MB / 0.523 GB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002/0.7632, allocations: 0.789 MB / 0.5238 GB, free: 35.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006246/0.7639, allocations: 75.94 kB / 0.5239 GB, free: 35.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/0.7659, allocations: 193.8 kB / 0.5241 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/0.7663, allocations: 221.8 kB / 0.5243 GB, free: 35.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/0.7664, allocations: 91.92 kB / 0.5244 GB, free: 35.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002999/0.7695, allocations: 2.29 MB / 0.5266 GB, free: 32.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.7695, allocations: 0 / 0.5266 GB, free: 32.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004233/0.7737, allocations: 1.117 MB / 0.5277 GB, free: 31.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (252): * Single equations (assignments): 242 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006181/0.7743, allocations: 245.1 kB / 0.5279 GB, free: 31.58 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006594/0.7809, allocations: 4.842 MB / 0.5326 GB, free: 26.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.268e-06/0.781, allocations: 4 kB / 0.5327 GB, free: 26.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004134/0.7851, allocations: 2.969 MB / 0.5355 GB, free: 23.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/0.7895, allocations: 0.8314 MB / 0.5364 GB, free: 22.75 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.806, allocations: 12.64 MB / 0.5487 GB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002632/0.8087, allocations: 3.62 MB / 0.5522 GB, free: 6.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003048/0.8118, allocations: 0.8641 MB / 0.5531 GB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/0.8125, allocations: 263.3 kB / 0.5533 GB, free: 5.207 MB / 382.1 MB Notification: Performance of SimCode: time 1.103e-06/0.8125, allocations: 0 / 0.5533 GB, free: 5.207 MB / 382.1 MB Notification: Performance of Templates: time 0.08514/0.8977, allocations: 50.4 MB / 0.6026 GB, free: 2.727 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: