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.001409/0.001408, allocations: 116.6 kB / 17.06 MB, free: 5.996 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.001546/0.001546, allocations: 198.8 kB / 18 MB, free: 5.074 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.423/1.423, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001204/0.001204, allocations: 51.94 kB / 327.9 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09425/0.09546, allocations: 46.61 MB / 374.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2038/0.2993, allocations: 24.06 MB / 398.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01864/0.3179, allocations: 7.113 MB / 405.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007454/0.3255, allocations: 125.7 kB / 405.8 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006852/0.3324, allocations: 1.578 MB / 407.4 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.3445, allocations: 2.273 MB / 409.7 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005324/0.3498, allocations: 1.459 MB / 411.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01154/0.3614, allocations: 7.197 MB / 418.3 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009149/0.3705, allocations: 5.479 MB / 423.8 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00626/0.3768, allocations: 3.185 MB / 427 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007791/0.3847, allocations: 3.826 MB / 430.8 MB, free: 7.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003516/0.3882, allocations: 0.8711 MB / 431.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005759/0.394, allocations: 1.308 MB / 433 MB, free: 4.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.399, allocations: 2.123 MB / 435.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009331/0.4083, allocations: 3.777 MB / 438.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02159/0.43, allocations: 11.45 MB / 450.3 MB, free: 3.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.263e-06/0.43, allocations: 0 / 450.3 MB, free: 3.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4301, allocations: 4 kB / 450.3 MB, free: 3.574 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003828/0.4305, allocations: 0 / 450.3 MB, free: 3.574 MB / 366.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.0314/0.4619, allocations: 7.42 MB / 457.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.52e-05/0.462, allocations: 12.03 kB / 457.8 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01203/0.474, allocations: 1.219 MB / 459 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01212/0.4862, allocations: 3.919 MB / 462.9 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005399/0.4868, allocations: 431.8 kB / 463.3 MB, free: 6.418 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002307/0.4891, allocations: 0.5587 MB / 463.9 MB, free: 5.859 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02264/0.5118, allocations: 7.276 MB / 471.2 MB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003374/0.5122, allocations: 4 kB / 471.2 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001933/0.5141, allocations: 236 kB / 471.4 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004261/0.5145, allocations: 267.2 kB / 471.7 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01605/0.5306, allocations: 6.103 MB / 477.8 MB, free: 7.922 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04973/0.5804, allocations: 23.4 MB / 0.4894 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/0.5906, allocations: 8.736 MB / 0.4979 GB, free: 6.211 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004725/0.5954, allocations: 2.367 MB / 0.5003 GB, free: 3.836 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01599/0.6114, allocations: 6.922 MB / 0.507 GB, free: 12.69 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.124e-05/0.6115, allocations: 60.56 kB / 0.5071 GB, free: 12.62 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 6.071e-06/0.6116, allocations: 4 kB / 0.5071 GB, free: 12.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03699/0.6486, allocations: 13.72 MB / 0.5205 GB, free: 14.67 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.6487, allocations: 81.59 kB / 0.5205 GB, free: 14.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006797/0.6555, allocations: 3.432 MB / 0.5239 GB, free: 11.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005383/0.656, allocations: 73.7 kB / 0.524 GB, free: 11.08 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002079/0.6581, allocations: 2.678 MB / 0.5266 GB, free: 8.371 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001197/0.6593, allocations: 0.9627 MB / 0.5275 GB, free: 7.395 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001605/0.661, allocations: 0.641 MB / 0.5282 GB, free: 6.746 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.6611, allocations: 301.1 kB / 0.5284 GB, free: 6.449 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003065/0.6642, allocations: 1.549 MB / 0.53 GB, free: 4.898 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00416/0.6683, allocations: 2.76 MB / 0.5326 GB, free: 1.605 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008372/0.6767, allocations: 4.599 MB / 0.5371 GB, free: 12.43 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.515e-05/0.6768, allocations: 16 kB / 0.5372 GB, free: 12.42 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01192/0.6887, allocations: 5.468 MB / 0.5425 GB, free: 6.848 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.646e-05/0.6888, allocations: 20.66 kB / 0.5425 GB, free: 6.828 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-05/0.6889, allocations: 44 kB / 0.5426 GB, free: 6.785 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/0.6912, allocations: 0.6653 MB / 0.5432 GB, free: 6.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003712/0.695, allocations: 0.8658 MB / 0.5441 GB, free: 5.234 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2647/0.9597, allocations: 10.34 MB / 0.5541 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004247/0.9639, allocations: 228.1 kB / 0.5544 GB, free: 141.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008371/0.9648, allocations: 167.8 kB / 0.5545 GB, free: 141.4 MB / 478.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.004198/0.969, allocations: 1.619 MB / 0.5561 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001362/0.9704, allocations: 387.5 kB / 0.5565 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008978/0.9794, allocations: 4.507 MB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.806e-05/0.9795, allocations: 35.19 kB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/0.9795, allocations: 7.688 kB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-05/0.9796, allocations: 13.88 kB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01911/0.9987, allocations: 9.907 MB / 0.5706 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.9987, allocations: 5.594 kB / 0.5706 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002227/1.001, allocations: 0.4977 MB / 0.5711 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001847/1.003, allocations: 0.7328 MB / 0.5718 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/1.003, allocations: 70.91 kB / 0.5719 GB, free: 134.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01171/1.015, allocations: 14.12 MB / 0.5857 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.359e-05/1.015, allocations: 10.09 kB / 0.5857 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01284/1.028, allocations: 6.592 MB / 0.5921 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002765/1.031, allocations: 0.7718 MB / 0.5929 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001267/1.032, allocations: 63.36 kB / 0.5929 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003526/1.035, allocations: 164.9 kB / 0.5931 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006503/1.036, allocations: 207.2 kB / 0.5933 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002625/1.036, allocations: 84.53 kB / 0.5934 GB, free: 119.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005494/1.042, allocations: 2.305 MB / 0.5956 GB, free: 118.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.61e-07/1.042, allocations: 0 / 0.5956 GB, free: 118.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007216/1.049, allocations: 1.093 MB / 0.5967 GB, free: 118.7 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.00116/1.05, allocations: 290.6 kB / 0.597 GB, free: 118.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01003/1.06, allocations: 4.685 MB / 0.6015 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.06, allocations: 0 / 0.6015 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006691/1.067, allocations: 2.828 MB / 0.6043 GB, free: 112.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007101/1.074, allocations: 0.9043 MB / 0.6052 GB, free: 111.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02317/1.097, allocations: 10.43 MB / 0.6154 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004029/1.101, allocations: 3.511 MB / 0.6188 GB, free: 97.66 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003194/1.105, allocations: 0.864 MB / 0.6196 GB, free: 96.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.106, allocations: 259.4 kB / 0.6199 GB, free: 96.54 MB / 478.1 MB Notification: Performance of SimCode: time 1.372e-06/1.106, allocations: 0 / 0.6199 GB, free: 96.54 MB / 478.1 MB Notification: Performance of Templates: time 0.07637/1.182, allocations: 51.66 MB / 0.6703 GB, free: 44.88 MB / 478.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)