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.001396/0.001396, allocations: 107.7 kB / 16.92 MB, free: 5.656 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.001172/0.001172, allocations: 189.6 kB / 17.85 MB, free: 5.176 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.388/1.388, allocations: 205.1 MB / 223.7 MB, free: 12.36 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.001152/0.001152, allocations: 55.88 kB / 280 MB, free: 3.191 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.08104, allocations: 46.63 MB / 326.6 MB, free: 4.492 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02411/0.1052, allocations: 24.05 MB / 350.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.1192, allocations: 7.098 MB / 357.8 MB, free: 5.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004214/0.1235, allocations: 135.5 kB / 357.9 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005074/0.1286, allocations: 1.564 MB / 359.5 MB, free: 3.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009035/0.1377, allocations: 2.286 MB / 361.8 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004485/0.1422, allocations: 1.462 MB / 363.2 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.1525, allocations: 7.182 MB / 370.4 MB, free: 8.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009056/0.1616, allocations: 5.471 MB / 375.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1809/0.3425, allocations: 3.167 MB / 379 MB, free: 16.88 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006967/0.3495, allocations: 3.818 MB / 382.9 MB, free: 16.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005473/0.355, allocations: 0.8748 MB / 383.7 MB, free: 16.78 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006769/0.3618, allocations: 1.313 MB / 385 MB, free: 16.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004456/0.3663, allocations: 2.129 MB / 387.2 MB, free: 16.55 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009045/0.3754, allocations: 3.78 MB / 391 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01324/0.3887, allocations: 11.36 MB / 402.3 MB, free: 12.35 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.3887, allocations: 0 / 402.3 MB, free: 12.35 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3887, allocations: 0 / 402.3 MB, free: 12.35 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003515/0.3891, allocations: 0.5 kB / 402.3 MB, free: 12.35 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.02238/0.4115, allocations: 7.418 MB / 409.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.4115, allocations: 9.281 kB / 409.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005965/0.4175, allocations: 1.228 MB / 411 MB, free: 6.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009026/0.4266, allocations: 3.873 MB / 414.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003191/0.4269, allocations: 440.9 kB / 415.3 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001433/0.4284, allocations: 0.5501 MB / 415.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01561/0.444, allocations: 7.28 MB / 423.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001494/0.4442, allocations: 7.906 kB / 423.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007162/0.4449, allocations: 234.4 kB / 423.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002735/0.4452, allocations: 266.8 kB / 423.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/0.4598, allocations: 6.102 MB / 429.7 MB, free: 8.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05381/0.5136, allocations: 23.68 MB / 453.4 MB, free: 492 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009541/0.5232, allocations: 8.721 MB / 462.1 MB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004574/0.5278, allocations: 2.384 MB / 464.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01406/0.5419, allocations: 6.937 MB / 471.4 MB, free: 13.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.594e-05/0.542, allocations: 56.56 kB / 471.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 5.761e-06/0.542, allocations: 0 / 471.5 MB, free: 13.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03561/0.5776, allocations: 13.73 MB / 485.2 MB, free: 15.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.199e-05/0.5777, allocations: 81.59 kB / 485.3 MB, free: 15.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006457/0.5842, allocations: 3.432 MB / 488.7 MB, free: 11.95 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004516/0.5847, allocations: 73.64 kB / 488.8 MB, free: 11.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00185/0.5865, allocations: 2.678 MB / 491.5 MB, free: 9.172 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009743/0.5875, allocations: 0.9698 MB / 492.4 MB, free: 8.211 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/0.5887, allocations: 0.6294 MB / 493.1 MB, free: 7.574 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.303e-05/0.5888, allocations: 309.1 kB / 493.4 MB, free: 7.27 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002672/0.5915, allocations: 1.541 MB / 494.9 MB, free: 5.727 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003351/0.5949, allocations: 2.764 MB / 497.7 MB, free: 2.445 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006734/0.6016, allocations: 4.603 MB / 0.4905 GB, free: 13.43 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.49e-05/0.6017, allocations: 19.94 kB / 0.4905 GB, free: 13.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01073/0.6124, allocations: 5.477 MB / 0.4959 GB, free: 8.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.531e-05/0.6125, allocations: 20 kB / 0.4959 GB, free: 8.066 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.021e-05/0.6126, allocations: 40 kB / 0.4959 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001697/0.6143, allocations: 0.6705 MB / 0.4966 GB, free: 7.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003513/0.6178, allocations: 0.8685 MB / 0.4974 GB, free: 6.527 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01141/0.6292, allocations: 10.35 MB / 0.5075 GB, free: 11.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.633, allocations: 223.5 kB / 0.5078 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006396/0.6337, allocations: 168 kB / 0.5079 GB, free: 11.3 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.003537/0.6372, allocations: 1.623 MB / 0.5095 GB, free: 9.727 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/0.6383, allocations: 391.3 kB / 0.5099 GB, free: 9.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00838/0.6467, allocations: 4.505 MB / 0.5143 GB, free: 4.738 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.304e-05/0.6468, allocations: 35.98 kB / 0.5143 GB, free: 4.703 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/0.6468, allocations: 8 kB / 0.5143 GB, free: 4.695 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-05/0.6468, allocations: 11.95 kB / 0.5143 GB, free: 4.684 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01866/0.6655, allocations: 9.915 MB / 0.524 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/0.6655, allocations: 4 kB / 0.524 GB, free: 10.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/0.6678, allocations: 0.5047 MB / 0.5245 GB, free: 10.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001893/0.6697, allocations: 0.7307 MB / 0.5252 GB, free: 9.406 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002399/0.67, allocations: 75.91 kB / 0.5253 GB, free: 9.332 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1808/0.8508, allocations: 14.12 MB / 0.5391 GB, free: 151.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.376e-05/0.8509, allocations: 9.406 kB / 0.5391 GB, free: 151.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01222/0.8631, allocations: 6.59 MB / 0.5455 GB, free: 150.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00249/0.8656, allocations: 0.7699 MB / 0.5463 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008729/0.8665, allocations: 66.66 kB / 0.5464 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/0.8687, allocations: 168.4 kB / 0.5465 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005822/0.8693, allocations: 207.1 kB / 0.5467 GB, free: 149.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002065/0.8695, allocations: 83 kB / 0.5468 GB, free: 149.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004325/0.8738, allocations: 2.309 MB / 0.549 GB, free: 148.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.533e-06/0.8739, allocations: 0 / 0.549 GB, free: 148.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004964/0.8788, allocations: 1.098 MB / 0.5501 GB, free: 148.7 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.0007189/0.8796, allocations: 276.5 kB / 0.5504 GB, free: 148.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01377/0.8933, allocations: 6.669 MB / 0.5569 GB, free: 146.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/0.8934, allocations: 0 / 0.5569 GB, free: 146.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004106/0.8975, allocations: 2.836 MB / 0.5597 GB, free: 144.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/0.9027, allocations: 0.9057 MB / 0.5605 GB, free: 144.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01814/0.9209, allocations: 10.56 MB / 0.5709 GB, free: 137.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003369/0.9243, allocations: 3.5 MB / 0.5743 GB, free: 134.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003321/0.9276, allocations: 0.8587 MB / 0.5751 GB, free: 133.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007169/0.9284, allocations: 262.8 kB / 0.5754 GB, free: 133.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.953e-06/0.9284, allocations: 4 kB / 0.5754 GB, free: 133.7 MB / 446.1 MB Notification: Performance of Templates: time 0.08243/1.011, allocations: 53.7 MB / 0.6278 GB, free: 81.94 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)