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.001588/0.001588, allocations: 104 kB / 16.62 MB, free: 6.812 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.001606/0.001606, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.385/1.385, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001106/0.001106, allocations: 47.92 kB / 279.5 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08917/0.09029, allocations: 46.63 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02297/0.1133, allocations: 23.71 MB / 349.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.126, allocations: 7.005 MB / 356.9 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003717/0.1298, allocations: 119.6 kB / 357 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004219/0.134, allocations: 1.344 MB / 358.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006799/0.1408, allocations: 2.032 MB / 360.4 MB, free: 2.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.1446, allocations: 1.326 MB / 361.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009276/0.1538, allocations: 7.313 MB / 369 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006972/0.1608, allocations: 5.474 MB / 374.5 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005606/0.1665, allocations: 3.095 MB / 377.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1739/0.3404, allocations: 3.82 MB / 381.4 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003375/0.3439, allocations: 0.8674 MB / 382.3 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005355/0.3492, allocations: 1.309 MB / 383.6 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003907/0.3532, allocations: 2.12 MB / 385.7 MB, free: 19.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009396/0.3626, allocations: 3.769 MB / 389.4 MB, free: 18.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01509/0.3777, allocations: 11.34 MB / 400.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.3778, allocations: 0 / 400.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.3778, allocations: 0 / 400.8 MB, free: 14.65 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004275/0.3782, allocations: 3.984 kB / 400.8 MB, free: 14.65 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.02187/0.4001, allocations: 7.406 MB / 408.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.4002, allocations: 7.688 kB / 408.2 MB, free: 9.824 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007005/0.4072, allocations: 1.226 MB / 409.4 MB, free: 9.242 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008311/0.4155, allocations: 3.678 MB / 413.1 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003898/0.416, allocations: 440.8 kB / 413.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001966/0.4179, allocations: 0.5494 MB / 414.1 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01543/0.4334, allocations: 7.292 MB / 421.4 MB, free: 2.152 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001628/0.4336, allocations: 11.09 kB / 421.4 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007345/0.4343, allocations: 231.2 kB / 421.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002226/0.4346, allocations: 267.3 kB / 421.9 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.4475, allocations: 6.133 MB / 428 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05125/0.4988, allocations: 23.79 MB / 451.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009083/0.508, allocations: 8.757 MB / 460.6 MB, free: 9.977 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004179/0.5122, allocations: 2.392 MB / 463 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0137/0.5259, allocations: 7.017 MB / 470 MB, free: 452 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.526, allocations: 72.55 kB / 470 MB, free: 372 kB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 4.619e-06/0.526, allocations: 0 / 470 MB, free: 372 kB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03448/0.5605, allocations: 13.92 MB / 484 MB, free: 2.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.289e-05/0.5606, allocations: 85.59 kB / 484 MB, free: 2.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00585/0.5665, allocations: 3.491 MB / 487.5 MB, free: 14.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004606/0.567, allocations: 73.7 kB / 487.6 MB, free: 14.65 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002011/0.569, allocations: 2.672 MB / 490.3 MB, free: 11.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.5701, allocations: 0.9655 MB / 491.2 MB, free: 11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/0.5711, allocations: 0.6403 MB / 491.9 MB, free: 10.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.5712, allocations: 309.1 kB / 492.2 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002711/0.574, allocations: 1.561 MB / 493.7 MB, free: 8.492 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003429/0.5774, allocations: 2.771 MB / 496.5 MB, free: 5.207 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00656/0.584, allocations: 4.622 MB / 0.4894 GB, free: 176 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.15e-05/0.584, allocations: 16 kB / 0.4894 GB, free: 160 kB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01053/0.5946, allocations: 5.516 MB / 0.4948 GB, free: 10.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.192e-05/0.5947, allocations: 27.12 kB / 0.4948 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.345e-05/0.5948, allocations: 36.62 kB / 0.4949 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001771/0.5965, allocations: 0.6903 MB / 0.4955 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003529/0.6001, allocations: 0.8655 MB / 0.4964 GB, free: 9.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.6106, allocations: 10.51 MB / 0.5066 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003934/0.6146, allocations: 223.6 kB / 0.5068 GB, free: 14 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005034/0.6151, allocations: 168 kB / 0.507 GB, free: 13.83 MB / 430.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.003251/0.6184, allocations: 1.627 MB / 0.5086 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/0.6194, allocations: 395.2 kB / 0.509 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007805/0.6272, allocations: 4.553 MB / 0.5134 GB, free: 7.207 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.784e-05/0.6273, allocations: 32 kB / 0.5135 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.741e-05/0.6273, allocations: 11.98 kB / 0.5135 GB, free: 7.164 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.731e-05/0.6274, allocations: 11.95 kB / 0.5135 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01692/0.6443, allocations: 10.03 MB / 0.5233 GB, free: 12.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.6443, allocations: 4 kB / 0.5233 GB, free: 12.98 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002189/0.6465, allocations: 0.5056 MB / 0.5238 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/0.6485, allocations: 0.7532 MB / 0.5245 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001987/0.6487, allocations: 79.91 kB / 0.5246 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1766/0.8253, allocations: 14.26 MB / 0.5385 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.8253, allocations: 9.344 kB / 0.5385 GB, free: 153.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.8367, allocations: 6.674 MB / 0.545 GB, free: 152.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002219/0.8389, allocations: 0.7836 MB / 0.5458 GB, free: 151.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007345/0.8397, allocations: 63.28 kB / 0.5459 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/0.8418, allocations: 167.9 kB / 0.546 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005295/0.8423, allocations: 206.9 kB / 0.5462 GB, free: 151.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001995/0.8425, allocations: 82.22 kB / 0.5463 GB, free: 151.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004067/0.8466, allocations: 2.357 MB / 0.5486 GB, free: 150.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.8466, allocations: 2.656 kB / 0.5486 GB, free: 150.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004378/0.851, allocations: 1.114 MB / 0.5497 GB, free: 150.7 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.0007866/0.8518, allocations: 273.2 kB / 0.5499 GB, free: 150.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0143/0.8661, allocations: 6.712 MB / 0.5565 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.061e-05/0.8662, allocations: 3.812 kB / 0.5565 GB, free: 148.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004032/0.8702, allocations: 2.86 MB / 0.5593 GB, free: 146.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004815/0.875, allocations: 0.9056 MB / 0.5602 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0173/0.8924, allocations: 12.97 MB / 0.5728 GB, free: 136.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/0.8953, allocations: 3.504 MB / 0.5763 GB, free: 134.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003241/0.8985, allocations: 0.8528 MB / 0.5771 GB, free: 133.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007323/0.8993, allocations: 258.7 kB / 0.5773 GB, free: 133.2 MB / 446.1 MB Notification: Performance of SimCode: time 7.71e-07/0.8993, allocations: 0 / 0.5773 GB, free: 133.2 MB / 446.1 MB Notification: Performance of Templates: time 0.07653/0.9758, allocations: 54.59 MB / 0.6306 GB, free: 80.46 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)