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.001114/0.001114, allocations: 90.22 kB / 16.65 MB, free: 6.535 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.001465/0.001465, allocations: 172.3 kB / 17.56 MB, free: 6.184 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.438/1.438, allocations: 205.4 MB / 223.7 MB, free: 13.07 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.0004337/0.0004337, allocations: 20 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.08402, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02277/0.1068, allocations: 22.78 MB / 351.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01747/0.1243, allocations: 6.962 MB / 358.1 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.1287, allocations: 123.5 kB / 358.2 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004633/0.1333, allocations: 1.348 MB / 359.5 MB, free: 4.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007246/0.1406, allocations: 2.032 MB / 361.6 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003962/0.1446, allocations: 1.334 MB / 362.9 MB, free: 1.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01015/0.1548, allocations: 7.776 MB / 370.7 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007168/0.1619, allocations: 4.507 MB / 375.2 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004017/0.166, allocations: 2.322 MB / 377.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1793/0.3453, allocations: 3.148 MB / 380.7 MB, free: 16.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001926/0.3472, allocations: 364.2 kB / 381 MB, free: 16.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003009/0.3503, allocations: 0.8116 MB / 381.8 MB, free: 16.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002075/0.3524, allocations: 1.515 MB / 383.3 MB, free: 16.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007628/0.36, allocations: 3.127 MB / 386.5 MB, free: 16.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01323/0.3733, allocations: 10.74 MB / 397.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.3733, allocations: 0 / 397.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3733, allocations: 0 / 397.2 MB, free: 13.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003648/0.3737, allocations: 2.438 kB / 397.2 MB, free: 13.08 MB / 318.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.02019/0.3939, allocations: 6.246 MB / 403.5 MB, free: 9.648 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.3939, allocations: 9.281 kB / 403.5 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007566/0.4015, allocations: 1.225 MB / 404.7 MB, free: 9.133 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007615/0.4092, allocations: 3.684 MB / 408.4 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004083/0.4096, allocations: 444.9 kB / 408.8 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001889/0.4115, allocations: 0.556 MB / 409.4 MB, free: 7.793 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01526/0.4268, allocations: 7.318 MB / 416.7 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.427, allocations: 7.719 kB / 416.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005418/0.4275, allocations: 229.8 kB / 416.9 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002127/0.4277, allocations: 269.2 kB / 417.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01155/0.4393, allocations: 6.167 MB / 423.3 MB, free: 348 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05066/0.49, allocations: 23.95 MB / 447.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/0.5002, allocations: 8.764 MB / 456.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004923/0.5052, allocations: 2.408 MB / 458.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01544/0.5206, allocations: 7.039 MB / 465.5 MB, free: 5.004 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.886e-05/0.5207, allocations: 64.56 kB / 465.6 MB, free: 4.934 MB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 4.839e-06/0.5207, allocations: 0 / 465.6 MB, free: 4.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03972/0.5605, allocations: 14.56 MB / 480.1 MB, free: 6.234 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.5605, allocations: 81.59 kB / 480.2 MB, free: 6.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00757/0.5681, allocations: 3.49 MB / 483.7 MB, free: 2.664 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005644/0.5687, allocations: 73.7 kB / 483.8 MB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002476/0.5712, allocations: 2.673 MB / 486.4 MB, free: 15.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/0.5727, allocations: 0.972 MB / 487.4 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007704/0.5735, allocations: 292.7 kB / 487.7 MB, free: 14.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.5736, allocations: 301.1 kB / 488 MB, free: 14.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003603/0.5772, allocations: 1.596 MB / 489.6 MB, free: 12.74 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004291/0.5815, allocations: 2.797 MB / 492.4 MB, free: 9.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007694/0.5893, allocations: 4.699 MB / 497.1 MB, free: 4.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.9e-05/0.5893, allocations: 8 kB / 497.1 MB, free: 4.312 MB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01214/0.6015, allocations: 5.578 MB / 0.4909 GB, free: 14.88 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.605e-05/0.6016, allocations: 20.62 kB / 0.4909 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.798e-05/0.6017, allocations: 40 kB / 0.4909 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00187/0.6035, allocations: 0.6837 MB / 0.4916 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003726/0.6073, allocations: 0.8859 MB / 0.4925 GB, free: 13.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01117/0.6185, allocations: 9.616 MB / 0.5019 GB, free: 3.195 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/0.6227, allocations: 239.7 kB / 0.5021 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007403/0.6235, allocations: 164 kB / 0.5023 GB, free: 2.801 MB / 414.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.004392/0.6279, allocations: 1.629 MB / 0.5038 GB, free: 1.219 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001401/0.6293, allocations: 387.3 kB / 0.5042 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.6397, allocations: 4.624 MB / 0.5087 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.786e-05/0.6398, allocations: 31.98 kB / 0.5088 GB, free: 12.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-05/0.6398, allocations: 8 kB / 0.5088 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.311e-05/0.6399, allocations: 11.95 kB / 0.5088 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02219/0.6621, allocations: 10.08 MB / 0.5186 GB, free: 1.844 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.687e-05/0.6621, allocations: 4 kB / 0.5186 GB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002342/0.6645, allocations: 0.5219 MB / 0.5191 GB, free: 1.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.6665, allocations: 0.7541 MB / 0.5199 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000255/0.6668, allocations: 76.56 kB / 0.52 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01382/0.6806, allocations: 13.04 MB / 0.5327 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.185e-06/0.6807, allocations: 6.281 kB / 0.5327 GB, free: 2.707 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2173/0.898, allocations: 6.761 MB / 0.5393 GB, free: 154.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003149/0.9012, allocations: 0.7872 MB / 0.5401 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006535/0.9019, allocations: 60.28 kB / 0.5401 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/0.904, allocations: 197.5 kB / 0.5403 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005388/0.9046, allocations: 211.6 kB / 0.5405 GB, free: 154.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001904/0.9048, allocations: 82.36 kB / 0.5406 GB, free: 154.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004144/0.9089, allocations: 2.362 MB / 0.5429 GB, free: 154.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.283e-06/0.909, allocations: 0 / 0.5429 GB, free: 154.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004088/0.9131, allocations: 1.113 MB / 0.544 GB, free: 154.5 MB / 446.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.0006703/0.9137, allocations: 288.2 kB / 0.5443 GB, free: 154.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007219/0.921, allocations: 4.771 MB / 0.5489 GB, free: 152.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.767e-06/0.921, allocations: 0 / 0.5489 GB, free: 152.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00425/0.9253, allocations: 2.895 MB / 0.5517 GB, free: 151 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009454/0.9347, allocations: 0.8663 MB / 0.5526 GB, free: 150.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02405/0.9588, allocations: 13.15 MB / 0.5654 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003784/0.9627, allocations: 3.5 MB / 0.5688 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003426/0.9661, allocations: 0.8543 MB / 0.5697 GB, free: 140.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008353/0.967, allocations: 267.5 kB / 0.5699 GB, free: 140.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.967, allocations: 0 / 0.5699 GB, free: 140.3 MB / 446.1 MB Notification: Performance of Templates: time 0.08337/1.05, allocations: 51.84 MB / 0.6206 GB, free: 90.26 MB / 446.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)