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.001431/0.001431, allocations: 105.6 kB / 17.06 MB, free: 6.027 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.001684/0.001684, allocations: 195 kB / 18 MB, free: 5.105 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.403/1.403, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001208/0.001208, allocations: 51.92 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08434, allocations: 46.61 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2092/0.2936, allocations: 24.06 MB / 398.6 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.3123, allocations: 7.12 MB / 405.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007059/0.3195, allocations: 126.3 kB / 405.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006213/0.3257, allocations: 1.577 MB / 407.4 MB, free: 7.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008982/0.3347, allocations: 2.277 MB / 409.7 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005123/0.3399, allocations: 1.465 MB / 411.1 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.3511, allocations: 7.191 MB / 418.3 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008951/0.36, allocations: 5.484 MB / 423.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006007/0.3661, allocations: 3.193 MB / 427 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00669/0.3728, allocations: 3.833 MB / 430.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002445/0.3752, allocations: 0.8711 MB / 431.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004267/0.3795, allocations: 1.304 MB / 433 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003462/0.383, allocations: 2.123 MB / 435.1 MB, free: 2.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008907/0.3919, allocations: 3.777 MB / 438.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01379/0.4057, allocations: 11.46 MB / 450.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4058, allocations: 0 / 450.4 MB, free: 3.566 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.4058, allocations: 4 kB / 450.4 MB, free: 3.562 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002938/0.4061, allocations: 0 / 450.4 MB, free: 3.562 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.01947/0.4256, allocations: 7.416 MB / 457.8 MB, free: 12.06 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.4257, allocations: 12.03 kB / 457.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005648/0.4313, allocations: 1.219 MB / 459 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007441/0.4388, allocations: 3.919 MB / 462.9 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000279/0.4391, allocations: 431.8 kB / 463.4 MB, free: 6.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007688/0.4398, allocations: 0.5549 MB / 463.9 MB, free: 5.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.4514, allocations: 7.276 MB / 471.2 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000117/0.4515, allocations: 15.92 kB / 471.2 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005001/0.452, allocations: 232 kB / 471.4 MB, free: 14.28 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002368/0.4523, allocations: 259.3 kB / 471.7 MB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01071/0.463, allocations: 6.107 MB / 477.8 MB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04795/0.511, allocations: 23.4 MB / 0.4894 GB, free: 15.87 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009162/0.5202, allocations: 8.733 MB / 0.498 GB, free: 6.203 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004357/0.5246, allocations: 2.375 MB / 0.5003 GB, free: 3.824 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01501/0.5396, allocations: 6.922 MB / 0.507 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.862e-05/0.5397, allocations: 60.56 kB / 0.5071 GB, free: 12.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.35e-06/0.5398, allocations: 0 / 0.5071 GB, free: 12.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03891/0.5787, allocations: 13.72 MB / 0.5205 GB, free: 14.66 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.758e-05/0.5788, allocations: 77.59 kB / 0.5206 GB, free: 14.57 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008057/0.5869, allocations: 3.436 MB / 0.5239 GB, free: 11.15 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006511/0.5876, allocations: 73.7 kB / 0.524 GB, free: 11.07 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002711/0.5903, allocations: 2.67 MB / 0.5266 GB, free: 8.367 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001268/0.5916, allocations: 0.9705 MB / 0.5276 GB, free: 7.383 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001127/0.5927, allocations: 0.6371 MB / 0.5282 GB, free: 6.738 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.5929, allocations: 309 kB / 0.5285 GB, free: 6.434 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003971/0.5969, allocations: 1.549 MB / 0.53 GB, free: 4.883 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004905/0.6018, allocations: 2.76 MB / 0.5327 GB, free: 1.59 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00936/0.6112, allocations: 4.595 MB / 0.5372 GB, free: 12.42 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.593e-05/0.6112, allocations: 12 kB / 0.5372 GB, free: 12.41 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01277/0.624, allocations: 5.474 MB / 0.5425 GB, free: 6.828 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.228e-05/0.6241, allocations: 29.38 kB / 0.5426 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.626e-05/0.6241, allocations: 36 kB / 0.5426 GB, free: 6.766 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00159/0.6257, allocations: 0.6691 MB / 0.5432 GB, free: 6.078 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003144/0.6289, allocations: 0.8619 MB / 0.5441 GB, free: 5.215 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2231/0.852, allocations: 10.34 MB / 0.5542 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003418/0.8555, allocations: 228 kB / 0.5544 GB, free: 141.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004373/0.8559, allocations: 167 kB / 0.5546 GB, free: 141.5 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.002821/0.8587, allocations: 1.621 MB / 0.5561 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009295/0.8597, allocations: 388 kB / 0.5565 GB, free: 141.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007987/0.8677, allocations: 4.508 MB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.646e-05/0.8677, allocations: 31.69 kB / 0.5609 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.982e-05/0.8678, allocations: 7.938 kB / 0.561 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.134e-05/0.8678, allocations: 14.31 kB / 0.561 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01844/0.8862, allocations: 9.906 MB / 0.5706 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.8863, allocations: 5.594 kB / 0.5706 GB, free: 134.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002073/0.8884, allocations: 0.4975 MB / 0.5711 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00173/0.8901, allocations: 0.7248 MB / 0.5718 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001877/0.8903, allocations: 74.64 kB / 0.5719 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01157/0.9019, allocations: 14.12 MB / 0.5857 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.9019, allocations: 8.5 kB / 0.5857 GB, free: 123.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009192/0.9111, allocations: 6.603 MB / 0.5922 GB, free: 120.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001828/0.913, allocations: 0.7684 MB / 0.5929 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004471/0.9134, allocations: 63.28 kB / 0.593 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/0.9152, allocations: 169.4 kB / 0.5931 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004027/0.9156, allocations: 201.2 kB / 0.5933 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.9158, allocations: 86.19 kB / 0.5934 GB, free: 119.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002881/0.9187, allocations: 2.305 MB / 0.5957 GB, free: 118.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.9187, allocations: 0 / 0.5957 GB, free: 118.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003423/0.9221, allocations: 1.102 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.000554/0.9227, allocations: 284.2 kB / 0.597 GB, free: 118.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006113/0.9288, allocations: 4.687 MB / 0.6016 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.9288, allocations: 0 / 0.6016 GB, free: 115.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003627/0.9325, allocations: 2.831 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.004188/0.9367, allocations: 0.9025 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.0148/0.9515, 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.002498/0.954, allocations: 3.503 MB / 0.6188 GB, free: 97.65 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002646/0.9567, allocations: 0.8601 MB / 0.6197 GB, free: 96.79 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006813/0.9574, allocations: 251.4 kB / 0.6199 GB, free: 96.54 MB / 478.1 MB Notification: Performance of SimCode: time 2.344e-06/0.9574, allocations: 7.938 kB / 0.6199 GB, free: 96.54 MB / 478.1 MB Notification: Performance of Templates: time 0.08045/1.038, allocations: 52.42 MB / 0.6711 GB, free: 44.12 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)