Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.00158/0.001585, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002016/0.002016, allocations: 194.8 kB / 16.14 MB, free: 6.66 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.394/1.394, allocations: 205.1 MB / 222 MB, free: 4.75 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.001677/0.001677, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2294/0.2311, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02618/0.2573, allocations: 23.71 MB / 348.4 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.2769, allocations: 7.044 MB / 355.4 MB, free: 5.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007596/0.2846, allocations: 123.5 kB / 355.6 MB, free: 5.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0069/0.2916, allocations: 1.344 MB / 356.9 MB, free: 3.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009241/0.3009, allocations: 2.055 MB / 359 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004563/0.3054, allocations: 1.334 MB / 360.3 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01167/0.3171, allocations: 7.773 MB / 368.1 MB, free: 8.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009411/0.3266, allocations: 4.55 MB / 372.6 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006264/0.3329, allocations: 2.662 MB / 375.3 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007623/0.3405, allocations: 3.579 MB / 378.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003815/0.3444, allocations: 0.5117 MB / 379.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004862/0.3493, allocations: 0.9602 MB / 380.3 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003508/0.3528, allocations: 1.74 MB / 382.1 MB, free: 10.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007407/0.3602, allocations: 3.39 MB / 385.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01433/0.3746, allocations: 11.09 MB / 396.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.3747, allocations: 3.984 kB / 396.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3747, allocations: 0 / 396.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004459/0.3751, allocations: 0 / 396.6 MB, free: 11.96 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.02362/0.3988, allocations: 7.4 MB / 404 MB, free: 4.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.399e-05/0.3989, allocations: 8.031 kB / 404 MB, free: 4.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007947/0.4068, allocations: 1.223 MB / 405.2 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01082/0.4177, allocations: 3.686 MB / 408.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005561/0.4183, allocations: 439.8 kB / 409.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002148/0.4204, allocations: 0.5622 MB / 409.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01859/0.4391, allocations: 7.284 MB / 417.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002702/0.4394, allocations: 7.906 kB / 417.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001644/0.441, allocations: 240 kB / 417.4 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003349/0.4414, allocations: 263.2 kB / 417.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01542/0.4568, allocations: 6.135 MB / 423.8 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04778/0.5046, allocations: 23.79 MB / 447.6 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1895/0.6942, allocations: 8.746 MB / 456.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004939/0.6992, allocations: 2.39 MB / 458.7 MB, free: 103 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01192/0.7111, allocations: 7.015 MB / 465.7 MB, free: 99.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.136e-05/0.7112, allocations: 61 kB / 465.8 MB, free: 99.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 6.532e-06/0.7112, allocations: 0 / 465.8 MB, free: 99.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.03095/0.7422, allocations: 13.93 MB / 479.7 MB, free: 93.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.359e-05/0.7422, allocations: 79.62 kB / 479.8 MB, free: 93.19 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005306/0.7475, allocations: 3.487 MB / 483.3 MB, free: 90.47 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003354/0.7479, allocations: 73.53 kB / 483.3 MB, free: 90.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001273/0.7492, allocations: 2.673 MB / 486 MB, free: 87.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006115/0.7498, allocations: 0.9684 MB / 487 MB, free: 86.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008179/0.7506, allocations: 0.6372 MB / 487.6 MB, free: 86.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.7507, allocations: 305.1 kB / 487.9 MB, free: 85.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002162/0.7529, allocations: 1.565 MB / 489.5 MB, free: 84.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002548/0.7554, allocations: 2.769 MB / 492.3 MB, free: 80.94 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/0.7603, allocations: 4.625 MB / 496.9 MB, free: 75.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-05/0.7603, allocations: 12 kB / 496.9 MB, free: 75.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007844/0.7682, allocations: 5.525 MB / 0.4906 GB, free: 70.1 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.911e-05/0.7682, allocations: 21.64 kB / 0.4907 GB, free: 70.08 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.341e-05/0.7683, allocations: 40 kB / 0.4907 GB, free: 70.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00154/0.7699, allocations: 0.6835 MB / 0.4914 GB, free: 69.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/0.7728, allocations: 0.8658 MB / 0.4922 GB, free: 68.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007871/0.7807, allocations: 9.594 MB / 0.5016 GB, free: 58.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003948/0.7846, allocations: 223.6 kB / 0.5018 GB, free: 58.15 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007874/0.7854, allocations: 167.4 kB / 0.502 GB, free: 57.99 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.003908/0.7894, allocations: 1.625 MB / 0.5035 GB, free: 56.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/0.7907, allocations: 391.2 kB / 0.5039 GB, free: 55.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008597/0.7993, allocations: 4.549 MB / 0.5084 GB, free: 51.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.932e-05/0.7993, allocations: 35.84 kB / 0.5084 GB, free: 51.26 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/0.7994, allocations: 7.938 kB / 0.5084 GB, free: 51.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-05/0.7994, allocations: 19.94 kB / 0.5084 GB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/0.818, allocations: 10.03 MB / 0.5182 GB, free: 41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.732e-05/0.8181, allocations: 8 kB / 0.5182 GB, free: 41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002076/0.8202, allocations: 0.5075 MB / 0.5187 GB, free: 40.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/0.8221, allocations: 0.7425 MB / 0.5194 GB, free: 39.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002463/0.8223, allocations: 67.97 kB / 0.5195 GB, free: 39.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.8326, allocations: 13.06 MB / 0.5323 GB, free: 25.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.8327, allocations: 4 kB / 0.5323 GB, free: 25.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01053/0.8432, allocations: 6.667 MB / 0.5388 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002158/0.8454, allocations: 0.7813 MB / 0.5395 GB, free: 18.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001304/0.8467, allocations: 67.92 kB / 0.5396 GB, free: 18.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002833/0.8496, allocations: 167.7 kB / 0.5398 GB, free: 17.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000547/0.8502, allocations: 213.7 kB / 0.54 GB, free: 17.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002328/0.8504, allocations: 87.72 kB / 0.54 GB, free: 17.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004738/0.8551, allocations: 2.357 MB / 0.5423 GB, free: 15.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8552, allocations: 0 / 0.5423 GB, free: 15.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00524/0.8604, allocations: 1.111 MB / 0.5434 GB, free: 14.12 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.0008173/0.8612, allocations: 283.9 kB / 0.5437 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007205/0.8685, allocations: 4.71 MB / 0.5483 GB, free: 9.02 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/0.8685, allocations: 4 kB / 0.5483 GB, free: 9.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004124/0.8726, allocations: 2.858 MB / 0.5511 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006552/0.8792, allocations: 0.8559 MB / 0.5519 GB, free: 5.227 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02402/0.9032, allocations: 12.97 MB / 0.5646 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006211/0.9095, allocations: 3.507 MB / 0.568 GB, free: 4.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004261/0.9138, allocations: 0.856 MB / 0.5689 GB, free: 3.75 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/0.9151, allocations: 259.4 kB / 0.5691 GB, free: 3.496 MB / 398.1 MB Notification: Performance of SimCode: time 1.343e-06/0.9151, allocations: 0 / 0.5691 GB, free: 3.496 MB / 398.1 MB Notification: Performance of Templates: time 0.2814/1.197, allocations: 52.56 MB / 0.6204 GB, free: 121.7 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)