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.001062/0.001062, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001109/0.001109, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.457/1.457, allocations: 205.1 MB / 222.1 MB, free: 4.73 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.001153/0.001154, allocations: 43.94 kB / 278.2 MB, free: 12.63 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2376/0.2388, allocations: 46.62 MB / 324.9 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02222/0.261, allocations: 23.72 MB / 348.6 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01606/0.2771, allocations: 6.997 MB / 355.6 MB, free: 5.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006537/0.2838, allocations: 123.6 kB / 355.7 MB, free: 5.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00669/0.2905, allocations: 1.348 MB / 357 MB, free: 3.812 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008484/0.299, allocations: 2.036 MB / 359.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005178/0.3042, allocations: 1.326 MB / 360.4 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.3159, allocations: 7.309 MB / 367.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009588/0.3255, allocations: 5.474 MB / 373.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006255/0.3318, allocations: 3.099 MB / 376.3 MB, free: 448 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007587/0.3394, allocations: 3.826 MB / 380.1 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004138/0.3436, allocations: 0.8672 MB / 381 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006107/0.3497, allocations: 1.308 MB / 382.3 MB, free: 10.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004719/0.3545, allocations: 2.123 MB / 384.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009191/0.3637, allocations: 3.769 MB / 388.2 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01522/0.3789, allocations: 11.33 MB / 399.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.379, allocations: 7.984 kB / 399.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.379, allocations: 0 / 399.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004085/0.3794, allocations: 0 / 399.5 MB, free: 9.133 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.02617/0.4056, allocations: 7.396 MB / 406.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.4057, allocations: 12.03 kB / 406.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007755/0.4135, allocations: 1.223 MB / 408.1 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01008/0.4236, allocations: 3.678 MB / 411.8 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006378/0.4242, allocations: 440 kB / 412.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002231/0.4265, allocations: 0.5622 MB / 412.8 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02112/0.4476, allocations: 7.292 MB / 420.1 MB, free: 4.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003075/0.448, allocations: 11.84 kB / 420.1 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002224/0.4502, allocations: 232 kB / 420.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004647/0.4507, allocations: 263.3 kB / 420.6 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01636/0.4671, allocations: 6.135 MB / 426.7 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05547/0.5226, allocations: 23.79 MB / 450.5 MB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1868/0.7094, allocations: 8.741 MB / 459.3 MB, free: 100.4 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005356/0.7148, allocations: 2.389 MB / 461.6 MB, free: 100.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01277/0.7276, allocations: 7.03 MB / 468.7 MB, free: 96.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.712e-05/0.7277, allocations: 60.47 kB / 468.7 MB, free: 96.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.438e-06/0.7277, allocations: 0 / 468.7 MB, free: 96.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.02861/0.7563, allocations: 13.92 MB / 482.7 MB, free: 90.46 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.243e-05/0.7564, allocations: 79.44 kB / 482.7 MB, free: 90.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00475/0.7612, allocations: 3.494 MB / 486.2 MB, free: 87.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003713/0.7616, allocations: 77.38 kB / 486.3 MB, free: 87.59 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.7628, allocations: 2.674 MB / 489 MB, free: 84.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/0.7634, allocations: 0.9682 MB / 490 MB, free: 83.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008423/0.7642, allocations: 0.6372 MB / 490.6 MB, free: 83.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.031e-05/0.7643, allocations: 301.1 kB / 490.9 MB, free: 83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002092/0.7664, allocations: 1.571 MB / 492.5 MB, free: 81.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/0.7689, allocations: 2.769 MB / 495.2 MB, free: 78.13 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004685/0.7736, allocations: 4.629 MB / 499.9 MB, free: 72.93 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.7736, allocations: 12 kB / 499.9 MB, free: 72.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008106/0.7818, allocations: 5.513 MB / 0.4935 GB, free: 67.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.157e-05/0.7818, allocations: 24.62 kB / 0.4936 GB, free: 67.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.658e-05/0.7819, allocations: 36 kB / 0.4936 GB, free: 67.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001497/0.7834, allocations: 0.6911 MB / 0.4943 GB, free: 66.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002853/0.7862, allocations: 0.8697 MB / 0.4951 GB, free: 65.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008376/0.7946, allocations: 10.51 MB / 0.5054 GB, free: 54.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/0.7986, allocations: 223.6 kB / 0.5056 GB, free: 54.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006157/0.7992, allocations: 167.7 kB / 0.5057 GB, free: 54.24 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.003153/0.8024, allocations: 1.617 MB / 0.5073 GB, free: 52.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/0.8034, allocations: 391.3 kB / 0.5077 GB, free: 52.23 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007204/0.8106, allocations: 4.557 MB / 0.5122 GB, free: 47.54 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-05/0.8107, allocations: 35.92 kB / 0.5122 GB, free: 47.51 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.239e-05/0.8107, allocations: 8 kB / 0.5122 GB, free: 47.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.206e-05/0.8108, allocations: 11.95 kB / 0.5122 GB, free: 47.49 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01581/0.8266, allocations: 10.03 MB / 0.522 GB, free: 37.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.398e-05/0.8266, allocations: 8 kB / 0.522 GB, free: 37.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002066/0.8287, allocations: 0.5074 MB / 0.5225 GB, free: 36.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001812/0.8305, allocations: 0.7467 MB / 0.5232 GB, free: 35.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002458/0.8308, allocations: 71.81 kB / 0.5233 GB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01034/0.8411, allocations: 14.27 MB / 0.5372 GB, free: 20.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.752e-06/0.8412, allocations: 11.98 kB / 0.5372 GB, free: 20.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01006/0.8513, allocations: 6.68 MB / 0.5438 GB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002587/0.8539, allocations: 0.7851 MB / 0.5445 GB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001279/0.8552, allocations: 63.98 kB / 0.5446 GB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003347/0.8586, allocations: 175.6 kB / 0.5448 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006884/0.8593, allocations: 209.8 kB / 0.545 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002845/0.8596, allocations: 79.98 kB / 0.545 GB, free: 12.55 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004938/0.8645, allocations: 2.361 MB / 0.5473 GB, free: 10.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8646, allocations: 0 / 0.5473 GB, free: 10.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005262/0.8698, allocations: 1.107 MB / 0.5484 GB, free: 9.105 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.0008644/0.8707, allocations: 267.5 kB / 0.5487 GB, free: 8.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01509/0.8858, allocations: 6.711 MB / 0.5552 GB, free: 2.051 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.256e-05/0.8859, allocations: 4 kB / 0.5552 GB, free: 2.047 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005025/0.8909, allocations: 2.847 MB / 0.558 GB, free: 15.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007847/0.8988, allocations: 0.9132 MB / 0.5589 GB, free: 14.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02687/0.9257, allocations: 12.98 MB / 0.5716 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006283/0.932, allocations: 3.505 MB / 0.575 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.004325/0.9364, allocations: 0.8522 MB / 0.5758 GB, free: 12.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/0.9378, allocations: 259.4 kB / 0.5761 GB, free: 12.49 MB / 414.1 MB Notification: Performance of SimCode: time 1.343e-06/0.9378, allocations: 3.938 kB / 0.5761 GB, free: 12.49 MB / 414.1 MB Notification: Performance of Templates: time 0.2823/1.22, allocations: 54.57 MB / 0.6294 GB, free: 126.1 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)