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.005871/0.005871, allocations: 106.1 kB / 15.74 MB, free: 6.02 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.001284/0.001284, allocations: 188.4 kB / 16.67 MB, free: 5.941 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.524/1.524, allocations: 205.1 MB / 222.5 MB, free: 4.492 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.001386/0.001386, allocations: 45.67 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.1006, allocations: 46.64 MB / 373.2 MB, free: 1.262 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02676/0.1274, allocations: 24.04 MB / 397.2 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0177/0.1451, allocations: 7.109 MB / 404.4 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006262/0.1515, allocations: 123.6 kB / 404.5 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006011/0.1575, allocations: 1.607 MB / 406.1 MB, free: 248 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01026/0.1678, allocations: 2.361 MB / 408.4 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005222/0.1731, allocations: 1.47 MB / 409.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01195/0.185, allocations: 7.204 MB / 417.1 MB, free: 5.156 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008145/0.1932, allocations: 5.478 MB / 422.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006025/0.1993, allocations: 3.197 MB / 425.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007063/0.2064, allocations: 3.826 MB / 429.6 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003326/0.2098, allocations: 0.875 MB / 430.5 MB, free: 7.672 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004482/0.2143, allocations: 1.304 MB / 431.8 MB, free: 6.367 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002946/0.2173, allocations: 2.127 MB / 433.9 MB, free: 4.234 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007572/0.2248, allocations: 3.773 MB / 437.7 MB, free: 456 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01586/0.2407, allocations: 11.5 MB / 449.2 MB, free: 4.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.2408, allocations: 4 kB / 449.2 MB, free: 4.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.2408, allocations: 0 / 449.2 MB, free: 4.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003922/0.2412, allocations: 0 / 449.2 MB, free: 4.906 MB / 382.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.2343/0.4754, allocations: 7.586 MB / 456.8 MB, free: 63.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.337e-05/0.4755, allocations: 10.28 kB / 456.8 MB, free: 63.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007291/0.4828, allocations: 1.255 MB / 458 MB, free: 62.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01177/0.4946, allocations: 3.94 MB / 462 MB, free: 60.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004189/0.4951, allocations: 428.3 kB / 462.4 MB, free: 60.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001851/0.497, allocations: 0.5565 MB / 463 MB, free: 60.47 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01884/0.5158, allocations: 7.272 MB / 470.2 MB, free: 57.21 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001544/0.516, allocations: 11.95 kB / 470.2 MB, free: 57.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005615/0.5166, allocations: 240.2 kB / 470.5 MB, free: 57.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003022/0.5169, allocations: 264.8 kB / 470.7 MB, free: 56.98 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01141/0.5283, allocations: 6.1 MB / 476.8 MB, free: 53.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03567/0.564, allocations: 23.47 MB / 0.4886 GB, free: 32.21 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006198/0.5703, allocations: 8.728 MB / 0.4971 GB, free: 22.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003074/0.5734, allocations: 2.355 MB / 0.4994 GB, free: 20.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/0.5851, allocations: 6.936 MB / 0.5062 GB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.5852, allocations: 60.56 kB / 0.5062 GB, free: 13.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.539e-06/0.5852, allocations: 0 / 0.5062 GB, free: 13.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03104/0.6162, allocations: 13.82 MB / 0.5197 GB, free: 15.09 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.6164, allocations: 77.59 kB / 0.5198 GB, free: 15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006345/0.6227, allocations: 3.428 MB / 0.5232 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005141/0.6233, allocations: 73.7 kB / 0.5232 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002523/0.6258, allocations: 2.755 MB / 0.5259 GB, free: 8.742 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00152/0.6273, allocations: 1.014 MB / 0.5269 GB, free: 7.742 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001291/0.6286, allocations: 0.6375 MB / 0.5275 GB, free: 7.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001606/0.6288, allocations: 305.1 kB / 0.5278 GB, free: 6.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00284/0.6316, allocations: 1.553 MB / 0.5293 GB, free: 5.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003518/0.6352, allocations: 2.755 MB / 0.532 GB, free: 1.957 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006835/0.642, allocations: 4.602 MB / 0.5365 GB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-05/0.6421, allocations: 12 kB / 0.5365 GB, free: 12.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01045/0.6525, allocations: 5.496 MB / 0.5419 GB, free: 7.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.714e-05/0.6526, allocations: 20 kB / 0.5419 GB, free: 7.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-05/0.6527, allocations: 40 kB / 0.542 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001626/0.6543, allocations: 0.6674 MB / 0.5426 GB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003447/0.6578, allocations: 0.8619 MB / 0.5435 GB, free: 5.574 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.6694, allocations: 10.37 MB / 0.5536 GB, free: 10.65 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004372/0.6739, allocations: 219.7 kB / 0.5538 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006438/0.6745, allocations: 168 kB / 0.554 GB, free: 10.27 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.003712/0.6783, allocations: 1.625 MB / 0.5555 GB, free: 8.633 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/0.6795, allocations: 413.3 kB / 0.5559 GB, free: 8.227 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008547/0.6881, allocations: 4.506 MB / 0.5603 GB, free: 3.594 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.253e-05/0.6882, allocations: 28 kB / 0.5604 GB, free: 3.566 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.6882, allocations: 8 kB / 0.5604 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/0.6882, allocations: 15.94 kB / 0.5604 GB, free: 3.543 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02059/0.7088, allocations: 9.908 MB / 0.5701 GB, free: 9.461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.127e-05/0.7089, allocations: 12.03 kB / 0.5701 GB, free: 9.449 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002369/0.7113, allocations: 0.4915 MB / 0.5706 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002205/0.7135, allocations: 0.739 MB / 0.5713 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/0.7138, allocations: 71.97 kB / 0.5713 GB, free: 8.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01468/0.7285, allocations: 14.12 MB / 0.5851 GB, free: 9.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.7286, allocations: 7.938 kB / 0.5851 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01208/0.7406, allocations: 6.616 MB / 0.5916 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002615/0.7433, allocations: 0.7914 MB / 0.5924 GB, free: 1.496 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008665/0.7442, allocations: 64 kB / 0.5924 GB, free: 1.434 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002177/0.7464, allocations: 171.7 kB / 0.5926 GB, free: 1.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00049/0.7469, allocations: 209.7 kB / 0.5928 GB, free: 1.062 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001827/0.7471, allocations: 79.97 kB / 0.5929 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003891/0.751, allocations: 2.307 MB / 0.5951 GB, free: 14.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/0.751, allocations: 0 / 0.5951 GB, free: 14.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004972/0.756, allocations: 1.098 MB / 0.5962 GB, free: 13.6 MB / 478.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.0007892/0.7568, allocations: 286.1 kB / 0.5965 GB, free: 13.31 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008431/0.7652, allocations: 4.68 MB / 0.601 GB, free: 8.516 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.216e-06/0.7653, allocations: 0.5 kB / 0.601 GB, free: 8.516 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004996/0.7703, allocations: 2.841 MB / 0.6038 GB, free: 5.594 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005805/0.7761, allocations: 0.904 MB / 0.6047 GB, free: 4.695 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02151/0.7977, allocations: 10.6 MB / 0.6151 GB, free: 9.973 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003685/0.8014, allocations: 3.499 MB / 0.6185 GB, free: 6.438 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003229/0.8047, allocations: 0.8601 MB / 0.6193 GB, free: 5.57 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008415/0.8055, allocations: 263.4 kB / 0.6196 GB, free: 5.312 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/0.8055, allocations: 0 / 0.6196 GB, free: 5.312 MB / 494.1 MB Notification: Performance of Templates: time 0.3298/1.135, allocations: 51.65 MB / 0.67 GB, free: 130.8 MB / 494.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)