Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.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_Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 97.97 kB / 15.05 MB, free: 1.105 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.001272/0.001272, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.397/1.397, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004775/0.0004776, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2553, allocations: 47.58 MB / 326.5 MB, free: 1.43 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier): time 0.01517/0.2705, allocations: 13.51 MB / 340 MB, free: 5.977 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.2857, allocations: 7.806 MB / 347.8 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002718/0.2885, allocations: 87.62 kB / 347.8 MB, free: 14.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003004/0.2915, allocations: 0.9406 MB / 348.8 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00543/0.297, allocations: 1.48 MB / 350.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005829/0.3028, allocations: 1.735 MB / 352 MB, free: 9.902 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007748/0.3106, allocations: 3.39 MB / 355.4 MB, free: 6.508 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003542/0.3142, allocations: 2.255 MB / 357.6 MB, free: 4.207 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002647/0.3169, allocations: 1.518 MB / 359.2 MB, free: 2.684 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002326/0.3192, allocations: 1.727 MB / 360.9 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000463/0.3197, allocations: 232 kB / 361.1 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001364/0.3211, allocations: 0.5074 MB / 361.6 MB, free: 220 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007607/0.3218, allocations: 0.833 MB / 362.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008806/0.3227, allocations: 0.8629 MB / 363.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005485/0.3282, allocations: 6.069 MB / 369.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.3282, allocations: 0 / 369.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.3282, allocations: 0 / 369.4 MB, free: 8.422 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001839/0.3284, allocations: 0 / 369.4 MB, free: 8.422 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 958 * Number of variables: 958 Notification: Performance of Generate backend data structure: time 0.01247/0.3409, allocations: 4.425 MB / 373.8 MB, free: 3.926 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.341, allocations: 12.03 kB / 373.8 MB, free: 3.914 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00599/0.347, allocations: 0.9901 MB / 374.8 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006045/0.3531, allocations: 2.536 MB / 377.4 MB, free: 340 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000217/0.3533, allocations: 279.4 kB / 377.6 MB, free: 60 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00116/0.3545, allocations: 364 kB / 378 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009929/0.3644, allocations: 4.669 MB / 382.7 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001187/0.3646, allocations: 7.938 kB / 382.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004183/0.365, allocations: 152 kB / 382.8 MB, free: 10.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001418/0.3652, allocations: 163.2 kB / 383 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008203/0.3734, allocations: 3.987 MB / 387 MB, free: 6.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02818/0.4016, allocations: 16.01 MB / 403 MB, free: 6.227 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007554/0.4092, allocations: 7.866 MB / 410.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00739/0.4166, allocations: 4.361 MB / 415.2 MB, free: 8.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.4167, allocations: 64.55 kB / 415.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=190): time 3.687e-06/0.4167, allocations: 0 / 415.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=194): time 0.01423/0.431, allocations: 7.42 MB / 422.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001136/0.4311, allocations: 180.2 kB / 422.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003855/0.435, allocations: 2.217 MB / 425.1 MB, free: 14.85 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002235/0.4352, allocations: 61.7 kB / 425.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.4365, allocations: 1.656 MB / 426.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006132/0.4371, allocations: 0.6507 MB / 427.4 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001083/0.4372, allocations: 52 kB / 427.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002093/0.4375, allocations: 394.6 kB / 427.9 MB, free: 12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001468/0.4389, allocations: 0.8986 MB / 428.8 MB, free: 11.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001817/0.4408, allocations: 1.514 MB / 430.3 MB, free: 9.312 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.4425, allocations: 1.138 MB / 431.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/0.4425, allocations: 4 kB / 431.4 MB, free: 8.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=297) (initialization): time 0.005227/0.4477, allocations: 3.233 MB / 434.7 MB, free: 4.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003426/0.4512, allocations: 7.466 MB / 442.1 MB, free: 12.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.536e-05/0.4512, allocations: 23.97 kB / 442.1 MB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.4523, allocations: 471.8 kB / 442.6 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001942/0.4543, allocations: 0.4993 MB / 443.1 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008088/0.4624, allocations: 8.194 MB / 451.3 MB, free: 2.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002245/0.4646, allocations: 99.94 kB / 451.4 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001768/0.4648, allocations: 92 kB / 451.5 MB, free: 2.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4649, allocations: 6.969 kB / 451.5 MB, free: 2.723 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.202/0.6669, allocations: 2.941 MB / 454.4 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001231/0.6671, allocations: 18.19 kB / 454.5 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001365/0.6685, allocations: 470.7 kB / 454.9 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002559/0.671, allocations: 0.4963 MB / 455.4 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006451/0.6775, allocations: 8.179 MB / 463.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002042/0.6796, allocations: 89.02 kB / 463.7 MB, free: 100.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001716/0.6797, allocations: 93.97 kB / 463.8 MB, free: 100.1 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 258 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.002045/0.6818, allocations: 1.148 MB / 464.9 MB, free: 99.49 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004137/0.6822, allocations: 261.9 kB / 465.2 MB, free: 99.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004009/0.6862, allocations: 2.872 MB / 468 MB, free: 98.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.6863, allocations: 19.5 kB / 468.1 MB, free: 98.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.6863, allocations: 5.5 kB / 468.1 MB, free: 98.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.6863, allocations: 7.688 kB / 468.1 MB, free: 98.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008348/0.6946, allocations: 6.345 MB / 474.4 MB, free: 95.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.6947, allocations: 3.906 kB / 474.4 MB, free: 95.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.6958, allocations: 283.6 kB / 474.7 MB, free: 95.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001272/0.6971, allocations: 0.6381 MB / 475.3 MB, free: 94.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001034/0.6972, allocations: 47.45 kB / 475.4 MB, free: 94.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009216/0.7064, allocations: 12.82 MB / 488.2 MB, free: 83.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.7064, allocations: 3.656 kB / 488.2 MB, free: 83.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005287/0.7117, allocations: 4.344 MB / 492.6 MB, free: 79.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.713, allocations: 0.5259 MB / 493.1 MB, free: 79.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.7133, allocations: 51.94 kB / 493.1 MB, free: 78.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001103/0.7144, allocations: 86.69 kB / 493.2 MB, free: 78.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003469/0.7148, allocations: 155 kB / 493.4 MB, free: 78.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.991e-05/0.7149, allocations: 48 kB / 493.4 MB, free: 78.71 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00188/0.7168, allocations: 1.502 MB / 494.9 MB, free: 77.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7168, allocations: 0 / 494.9 MB, free: 77.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003821/0.7206, allocations: 1.284 MB / 496.2 MB, free: 75.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004192/0.721, allocations: 225.9 kB / 496.4 MB, free: 75.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005659/0.7267, allocations: 4.947 MB / 0.4896 GB, free: 70.63 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/0.7267, allocations: 4 kB / 0.4896 GB, free: 70.62 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.729, allocations: 2.034 MB / 0.4916 GB, free: 68.53 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/0.7317, allocations: 0.6454 MB / 0.4922 GB, free: 67.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.7425, allocations: 8.364 MB / 0.5004 GB, free: 59.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001806/0.7443, allocations: 2.597 MB / 0.5029 GB, free: 56.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002303/0.7466, allocations: 0.6026 MB / 0.5035 GB, free: 56.29 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003782/0.747, allocations: 155.4 kB / 0.5037 GB, free: 56.14 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.747, allocations: 0 / 0.5037 GB, free: 56.14 MB / 382.1 MB Notification: Performance of Templates: time 0.05746/0.8045, allocations: 41.28 MB / 0.544 GB, free: 14.8 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Rectifier.pipe 2>&1) Environment - environmentSimulation: