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.005585/0.005584, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001212/0.001212, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.484/1.484, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.00119/0.00119, allocations: 50.75 kB / 326.6 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1354, allocations: 46.63 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02716/0.1626, allocations: 24.04 MB / 397.2 MB, free: 9.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.1808, allocations: 7.117 MB / 404.4 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005701/0.1866, allocations: 127.5 kB / 404.5 MB, free: 1.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006232/0.1929, allocations: 1.587 MB / 406.1 MB, free: 272 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009988/0.2029, allocations: 2.275 MB / 408.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005409/0.2084, allocations: 1.462 MB / 409.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01178/0.2202, allocations: 7.2 MB / 417 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01007/0.2303, allocations: 5.474 MB / 422.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00611/0.2364, allocations: 3.204 MB / 425.7 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007793/0.2443, allocations: 3.822 MB / 429.5 MB, free: 8.668 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003192/0.2475, allocations: 0.875 MB / 430.4 MB, free: 7.793 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004823/0.2523, allocations: 1.3 MB / 431.7 MB, free: 6.492 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003502/0.2559, allocations: 2.131 MB / 433.8 MB, free: 4.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007175/0.2631, allocations: 3.78 MB / 437.6 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0163/0.2794, allocations: 11.46 MB / 449.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.2794, allocations: 0 / 449.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.2795, allocations: 0 / 449.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005037/0.28, allocations: 0 / 449.1 MB, free: 5.066 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.2366/0.5165, allocations: 7.418 MB / 456.5 MB, free: 63.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.5166, allocations: 8.922 kB / 456.5 MB, free: 63.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007017/0.5236, allocations: 1.22 MB / 457.7 MB, free: 62.87 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01112/0.5348, allocations: 3.919 MB / 461.6 MB, free: 60.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004668/0.5353, allocations: 433 kB / 462 MB, free: 60.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00175/0.5371, allocations: 0.5563 MB / 462.6 MB, free: 60.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01538/0.5525, allocations: 7.273 MB / 469.9 MB, free: 57.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001754/0.5527, allocations: 7.875 kB / 469.9 MB, free: 57.21 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006376/0.5533, allocations: 235.7 kB / 470.1 MB, free: 57.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003586/0.5537, allocations: 271.7 kB / 470.4 MB, free: 57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01213/0.5658, allocations: 6.105 MB / 476.5 MB, free: 53.83 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03745/0.6033, allocations: 23.4 MB / 499.9 MB, free: 32.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006146/0.6095, allocations: 8.723 MB / 0.4967 GB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002915/0.6125, allocations: 2.355 MB / 0.499 GB, free: 20.12 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01066/0.6232, allocations: 6.926 MB / 0.5057 GB, free: 13.06 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.6232, allocations: 60.56 kB / 0.5058 GB, free: 12.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.859e-06/0.6232, allocations: 0 / 0.5058 GB, free: 12.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.0312/0.6544, allocations: 13.73 MB / 0.5192 GB, free: 15.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.597e-05/0.6545, allocations: 85.58 kB / 0.5193 GB, free: 14.97 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006235/0.6608, allocations: 3.42 MB / 0.5226 GB, free: 11.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004718/0.6613, allocations: 69.7 kB / 0.5227 GB, free: 11.49 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002396/0.6637, allocations: 2.689 MB / 0.5253 GB, free: 8.781 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001342/0.665, allocations: 0.9531 MB / 0.5263 GB, free: 7.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001203/0.6663, allocations: 0.6446 MB / 0.5269 GB, free: 7.188 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.6664, allocations: 309.1 kB / 0.5272 GB, free: 6.883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002789/0.6692, allocations: 1.541 MB / 0.5287 GB, free: 5.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003647/0.6729, allocations: 2.763 MB / 0.5314 GB, free: 2.047 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006728/0.6796, allocations: 4.606 MB / 0.5359 GB, free: 12.87 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.6797, allocations: 12 kB / 0.5359 GB, free: 12.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009507/0.6892, allocations: 5.471 MB / 0.5412 GB, free: 7.281 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.06e-05/0.6892, allocations: 20 kB / 0.5413 GB, free: 7.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.525e-05/0.6893, allocations: 47.88 kB / 0.5413 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001577/0.6909, allocations: 0.6572 MB / 0.5419 GB, free: 6.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00312/0.694, allocations: 0.8658 MB / 0.5428 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.7043, allocations: 10.35 MB / 0.5529 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003896/0.7083, allocations: 227.6 kB / 0.5531 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005974/0.7089, allocations: 172 kB / 0.5533 GB, free: 10.38 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.003534/0.7124, allocations: 1.621 MB / 0.5549 GB, free: 8.754 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/0.7135, allocations: 395.2 kB / 0.5552 GB, free: 8.363 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007819/0.7213, allocations: 4.502 MB / 0.5596 GB, free: 3.734 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/0.7214, allocations: 36 kB / 0.5597 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.7214, allocations: 8 kB / 0.5597 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/0.7215, allocations: 15.94 kB / 0.5597 GB, free: 3.676 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0186/0.7401, allocations: 9.904 MB / 0.5694 GB, free: 9.602 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.7401, allocations: 8 kB / 0.5694 GB, free: 9.594 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002255/0.7424, allocations: 0.5038 MB / 0.5699 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001924/0.7443, allocations: 0.7229 MB / 0.5706 GB, free: 8.348 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003226/0.7447, allocations: 71.97 kB / 0.5706 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01319/0.7579, allocations: 14.12 MB / 0.5844 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.526e-06/0.7579, allocations: 11.94 kB / 0.5844 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01109/0.769, allocations: 6.591 MB / 0.5909 GB, free: 2.477 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002482/0.7715, allocations: 0.7734 MB / 0.5916 GB, free: 1.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006257/0.7721, allocations: 63.98 kB / 0.5917 GB, free: 1.617 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001937/0.7741, allocations: 167.7 kB / 0.5918 GB, free: 1.457 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004587/0.7746, allocations: 209.7 kB / 0.592 GB, free: 1.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.7747, allocations: 83.97 kB / 0.5921 GB, free: 1.168 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003812/0.7786, allocations: 2.306 MB / 0.5944 GB, free: 14.88 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.7786, allocations: 0 / 0.5944 GB, free: 14.88 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004966/0.7836, allocations: 1.099 MB / 0.5955 GB, free: 13.79 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.0008468/0.7844, allocations: 284.5 kB / 0.5957 GB, free: 13.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008849/0.7933, allocations: 4.688 MB / 0.6003 GB, free: 8.707 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.328e-05/0.7934, allocations: 0 / 0.6003 GB, free: 8.707 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005267/0.7986, allocations: 2.826 MB / 0.6031 GB, free: 5.805 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/0.8038, allocations: 0.9067 MB / 0.6039 GB, free: 4.902 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0183/0.8221, allocations: 10.43 MB / 0.6141 GB, free: 10.37 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004339/0.8265, allocations: 3.495 MB / 0.6175 GB, free: 6.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003708/0.8303, allocations: 0.8601 MB / 0.6184 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/0.8311, allocations: 259.4 kB / 0.6186 GB, free: 5.719 MB / 494.1 MB Notification: Performance of SimCode: time 9.11e-07/0.8311, allocations: 0 / 0.6186 GB, free: 5.719 MB / 494.1 MB Notification: Performance of Templates: time 0.3199/1.151, allocations: 52.42 MB / 0.6698 GB, free: 130.6 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)