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.00107/0.00107, allocations: 86.64 kB / 15.06 MB, free: 1.09 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.001454/0.001454, allocations: 168.7 kB / 15.95 MB, free: 204 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.851/1.851, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0008023/0.0008029, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2916, allocations: 47.59 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02511/0.3168, allocations: 21.22 MB / 347.7 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01754/0.3344, allocations: 6.695 MB / 354.4 MB, free: 7.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006255/0.3407, allocations: 123.5 kB / 354.5 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005696/0.3464, allocations: 1.165 MB / 355.7 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009175/0.3556, allocations: 1.891 MB / 357.6 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005079/0.3607, allocations: 0.9747 MB / 358.6 MB, free: 3.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01626/0.377, allocations: 7.184 MB / 365.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01145/0.3885, allocations: 3.682 MB / 369.4 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006318/0.3949, allocations: 2.28 MB / 371.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006899/0.4018, allocations: 3.031 MB / 374.7 MB, free: 3.043 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002735/0.4046, allocations: 367.9 kB / 375.1 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004883/0.4095, allocations: 0.7143 MB / 375.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003656/0.4132, allocations: 1.499 MB / 377.3 MB, free: 476 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003751/0.417, allocations: 1.276 MB / 378.6 MB, free: 15.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01386/0.4309, allocations: 9.248 MB / 387.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.4309, allocations: 0 / 387.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4309, allocations: 0 / 387.8 MB, free: 5.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005048/0.4314, allocations: 0 / 387.8 MB, free: 5.906 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.02012/0.4516, allocations: 6.309 MB / 394.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.525e-05/0.4517, allocations: 11.97 kB / 394.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008375/0.4601, allocations: 1.226 MB / 395.4 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01309/0.4732, allocations: 3.585 MB / 399 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007152/0.474, allocations: 439.4 kB / 399.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002338/0.4763, allocations: 0.5661 MB / 400 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02266/0.499, allocations: 7.261 MB / 407.2 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004063/0.4995, allocations: 19.92 kB / 407.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002136/0.5017, allocations: 236 kB / 407.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003919/0.5021, allocations: 255.3 kB / 407.7 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01885/0.5209, allocations: 6.135 MB / 413.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06598/0.587, allocations: 23.93 MB / 437.8 MB, free: 3.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/0.5998, allocations: 8.752 MB / 446.5 MB, free: 9.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005877/0.6058, allocations: 2.406 MB / 448.9 MB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2581/0.8639, allocations: 7.041 MB / 456 MB, free: 104.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.742e-05/0.8641, allocations: 60.45 kB / 456 MB, free: 104.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.382e-06/0.8641, allocations: 0.5312 kB / 456 MB, free: 104.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03463/0.8987, allocations: 14.55 MB / 470.6 MB, free: 100.1 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.216e-05/0.8988, allocations: 80.81 kB / 470.7 MB, free: 100 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005246/0.9041, allocations: 3.461 MB / 474.1 MB, free: 98.76 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005457/0.9047, allocations: 73.36 kB / 474.2 MB, free: 98.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001594/0.9063, allocations: 2.68 MB / 476.9 MB, free: 96.65 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001014/0.9073, allocations: 0.9635 MB / 477.8 MB, free: 95.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.9075, allocations: 68.52 kB / 477.9 MB, free: 95.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.9077, allocations: 452.6 kB / 478.3 MB, free: 95.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002366/0.91, allocations: 1.585 MB / 479.9 MB, free: 94.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002736/0.9128, allocations: 2.782 MB / 482.7 MB, free: 91.22 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002851/0.9157, allocations: 2.044 MB / 484.8 MB, free: 89.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-05/0.9157, allocations: 13.31 kB / 484.8 MB, free: 89.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008411/0.9241, allocations: 5.558 MB / 490.3 MB, free: 83.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.925e-05/0.9242, allocations: 24 kB / 490.4 MB, free: 83.46 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.616e-05/0.9243, allocations: 36 kB / 490.4 MB, free: 83.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001553/0.9258, allocations: 0.691 MB / 491.1 MB, free: 82.72 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00341/0.9293, allocations: 0.8814 MB / 492 MB, free: 81.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008261/0.9375, allocations: 9.601 MB / 0.4898 GB, free: 71.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004411/0.942, allocations: 247.5 kB / 0.49 GB, free: 71.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007796/0.9428, allocations: 165 kB / 0.4902 GB, free: 71.33 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 (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.004091/0.9469, allocations: 1.615 MB / 0.4918 GB, free: 69.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001269/0.9482, allocations: 399.2 kB / 0.4922 GB, free: 69.31 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007355/0.9556, allocations: 4.601 MB / 0.4967 GB, free: 64.59 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.584e-05/0.9557, allocations: 28 kB / 0.4967 GB, free: 64.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-05/0.9557, allocations: 8 kB / 0.4967 GB, free: 64.55 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-05/0.9557, allocations: 19.94 kB / 0.4967 GB, free: 64.53 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01766/0.9734, allocations: 10.06 MB / 0.5065 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.9734, allocations: 8 kB / 0.5065 GB, free: 54.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/0.9755, allocations: 0.5153 MB / 0.507 GB, free: 53.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.9772, allocations: 0.7542 MB / 0.5078 GB, free: 52.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002856/0.9775, allocations: 76.66 kB / 0.5079 GB, free: 52.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009792/0.9873, allocations: 13.02 MB / 0.5206 GB, free: 39.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.9873, allocations: 11.94 kB / 0.5206 GB, free: 39.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009807/0.9972, allocations: 6.742 MB / 0.5272 GB, free: 32.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002152/0.9994, allocations: 0.7892 MB / 0.5279 GB, free: 31.27 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000894/1, allocations: 64 kB / 0.528 GB, free: 31.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/1.002, allocations: 194.3 kB / 0.5282 GB, free: 31.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004024/1.003, allocations: 201.8 kB / 0.5284 GB, free: 30.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001637/1.003, allocations: 87.97 kB / 0.5285 GB, free: 30.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003586/1.007, allocations: 2.329 MB / 0.5307 GB, free: 28.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.01e-07/1.007, allocations: 0 / 0.5307 GB, free: 28.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.007479/1.014, allocations: 1.104 MB / 0.5318 GB, free: 27.33 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 (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.000809/1.015, allocations: 245.3 kB / 0.532 GB, free: 27.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008383/1.023, allocations: 4.755 MB / 0.5367 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.13e-05/1.023, allocations: 4 kB / 0.5367 GB, free: 22.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004699/1.028, allocations: 2.886 MB / 0.5395 GB, free: 19.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005536/1.034, allocations: 0.8825 MB / 0.5404 GB, free: 18.38 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.055, allocations: 12.52 MB / 0.5526 GB, free: 5.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003119/1.058, allocations: 3.503 MB / 0.556 GB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003157/1.061, allocations: 0.856 MB / 0.5569 GB, free: 1.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000768/1.062, allocations: 259.4 kB / 0.5571 GB, free: 1.09 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/1.062, allocations: 0 / 0.5571 GB, free: 1.09 MB / 382.1 MB Notification: Performance of Templates: time 0.3291/1.391, allocations: 50.53 MB / 0.6065 GB, free: 138.2 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (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)