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.0009781/0.0009779, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007945/0.007945, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.585/1.585, allocations: 205.4 MB / 222.5 MB, free: 5.566 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.0004688/0.0004689, allocations: 12 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2371, allocations: 47.58 MB / 327 MB, free: 1.379 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02348/0.2606, allocations: 22.78 MB / 349.8 MB, free: 12.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01555/0.2762, allocations: 6.962 MB / 356.8 MB, free: 5.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00428/0.2805, allocations: 123.5 kB / 356.9 MB, free: 5.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00445/0.285, allocations: 1.344 MB / 358.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007825/0.2929, allocations: 2.047 MB / 360.3 MB, free: 1.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004477/0.2973, allocations: 1.326 MB / 361.6 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.3082, allocations: 7.765 MB / 369.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006704/0.315, allocations: 4.507 MB / 373.9 MB, free: 4.273 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004078/0.3191, allocations: 2.326 MB / 376.2 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004873/0.324, allocations: 3.158 MB / 379.4 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001369/0.3254, allocations: 364 kB / 379.7 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002536/0.3279, allocations: 0.8039 MB / 380.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001534/0.3295, allocations: 1.518 MB / 382 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004031/0.3335, allocations: 3.13 MB / 385.2 MB, free: 8.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01094/0.3445, allocations: 10.73 MB / 395.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3445, allocations: 0 / 395.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.103e-06/0.3445, allocations: 0 / 395.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002423/0.3448, allocations: 0 / 395.9 MB, free: 14.16 MB / 334.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.0146/0.3594, allocations: 6.242 MB / 402.2 MB, free: 7.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.3594, allocations: 12.03 kB / 402.2 MB, free: 7.824 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00626/0.3657, allocations: 1.223 MB / 403.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00714/0.3728, allocations: 3.694 MB / 407.1 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004291/0.3733, allocations: 439.9 kB / 407.5 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001291/0.3746, allocations: 0.5622 MB / 408.1 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/0.3902, allocations: 7.307 MB / 415.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001387/0.3904, allocations: 15.84 kB / 415.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005585/0.391, allocations: 236 kB / 415.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002756/0.3913, allocations: 263.3 kB / 415.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01344/0.4047, allocations: 6.174 MB / 422.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04752/0.4523, allocations: 23.95 MB / 446 MB, free: 11.2 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009053/0.4614, allocations: 8.771 MB / 454.8 MB, free: 1.477 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1832/0.6446, allocations: 2.394 MB / 457.2 MB, free: 104.6 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01381/0.6585, allocations: 7.048 MB / 464.2 MB, free: 101.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.143e-05/0.6586, allocations: 61.72 kB / 464.3 MB, free: 101.5 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 7.484e-06/0.6586, allocations: 1.969 kB / 464.3 MB, free: 101.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03002/0.6886, allocations: 14.55 MB / 478.8 MB, free: 95.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.6887, allocations: 80.66 kB / 478.9 MB, free: 95.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004325/0.693, allocations: 3.485 MB / 482.4 MB, free: 92.53 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002365/0.6933, allocations: 74.56 kB / 482.5 MB, free: 92.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.6945, allocations: 2.684 MB / 485.2 MB, free: 89.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006041/0.6951, allocations: 0.9573 MB / 486.1 MB, free: 88.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/0.6955, allocations: 290.7 kB / 486.4 MB, free: 88.51 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.627e-05/0.6955, allocations: 301.1 kB / 486.7 MB, free: 88.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002255/0.6978, allocations: 1.596 MB / 488.3 MB, free: 86.62 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002559/0.7003, allocations: 2.802 MB / 491.1 MB, free: 83.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005076/0.7054, allocations: 4.696 MB / 495.8 MB, free: 78.02 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.439e-05/0.7055, allocations: 12 kB / 495.8 MB, free: 78.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.00817/0.7137, allocations: 5.589 MB / 0.4896 GB, free: 72.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.913e-05/0.7137, allocations: 25.44 kB / 0.4897 GB, free: 72.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-05/0.7138, allocations: 40 kB / 0.4897 GB, free: 72.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001479/0.7153, allocations: 0.6784 MB / 0.4904 GB, free: 71.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003026/0.7183, allocations: 0.8814 MB / 0.4912 GB, free: 70.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007684/0.726, allocations: 9.613 MB / 0.5006 GB, free: 60.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00372/0.7298, allocations: 228.2 kB / 0.5008 GB, free: 60.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004758/0.7303, allocations: 176 kB / 0.501 GB, free: 60.15 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (429): * Single equations (assignments): 419 * 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.00315/0.7334, allocations: 1.615 MB / 0.5026 GB, free: 58.52 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008459/0.7343, allocations: 387.3 kB / 0.5029 GB, free: 58.14 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006871/0.7411, allocations: 4.624 MB / 0.5075 GB, free: 53.39 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.045e-05/0.7412, allocations: 39.92 kB / 0.5075 GB, free: 53.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-05/0.7412, allocations: 4 kB / 0.5075 GB, free: 53.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.329e-05/0.7413, allocations: 19.95 kB / 0.5075 GB, free: 53.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.7555, allocations: 10.09 MB / 0.5174 GB, free: 43.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.429e-05/0.7556, allocations: 11.98 kB / 0.5174 GB, free: 43.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/0.7578, allocations: 0.5187 MB / 0.5179 GB, free: 42.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001802/0.7596, allocations: 0.7463 MB / 0.5186 GB, free: 41.76 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/0.7598, allocations: 71.97 kB / 0.5187 GB, free: 41.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009856/0.7697, allocations: 13.05 MB / 0.5314 GB, free: 27.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.7697, allocations: 11.94 kB / 0.5314 GB, free: 27.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009556/0.7793, allocations: 6.771 MB / 0.538 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/0.7811, allocations: 0.7852 MB / 0.5388 GB, free: 19.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005461/0.7817, allocations: 68.86 kB / 0.5389 GB, free: 19.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/0.7837, allocations: 184.6 kB / 0.5391 GB, free: 19.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004204/0.7841, allocations: 205.8 kB / 0.5393 GB, free: 19.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001591/0.7843, allocations: 85.47 kB / 0.5393 GB, free: 19.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.7874, allocations: 2.357 MB / 0.5416 GB, free: 17.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7874, allocations: 8 kB / 0.5416 GB, free: 17.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003748/0.7911, allocations: 1.1 MB / 0.5427 GB, free: 16.02 MB / 382.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.0006108/0.7917, allocations: 281.9 kB / 0.543 GB, free: 15.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006661/0.7984, allocations: 4.771 MB / 0.5476 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.7985, allocations: 0.875 kB / 0.5476 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003805/0.8023, allocations: 2.901 MB / 0.5505 GB, free: 7.879 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006593/0.8089, allocations: 0.8554 MB / 0.5513 GB, free: 7.027 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/0.8262, allocations: 13.16 MB / 0.5642 GB, free: 9.754 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003358/0.8296, allocations: 3.499 MB / 0.5676 GB, free: 6.223 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003168/0.8328, allocations: 0.856 MB / 0.5684 GB, free: 5.359 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008228/0.8336, allocations: 263.4 kB / 0.5687 GB, free: 5.102 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8336, allocations: 4 kB / 0.5687 GB, free: 5.098 MB / 398.1 MB Notification: Performance of Templates: time 0.2796/1.113, allocations: 51.84 MB / 0.6193 GB, free: 120.2 MB / 430.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)