Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.00159/0.00159, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.446/1.446, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001174/0.001174, allocations: 55.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2111/0.2123, allocations: 46.63 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02307/0.2354, allocations: 24.04 MB / 349.4 MB, free: 11.81 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01336/0.2488, allocations: 7.109 MB / 356.5 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005941/0.2548, allocations: 127.5 kB / 356.6 MB, free: 4.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004997/0.2598, allocations: 1.579 MB / 358.2 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007749/0.2676, allocations: 2.271 MB / 360.4 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004055/0.2717, allocations: 1.466 MB / 361.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009204/0.2809, allocations: 7.188 MB / 369.1 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006675/0.2876, allocations: 5.467 MB / 374.6 MB, free: 2.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004526/0.2921, allocations: 3.173 MB / 377.7 MB, free: 15.26 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004971/0.2971, allocations: 3.814 MB / 381.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001756/0.2989, allocations: 0.875 MB / 382.4 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003007/0.3019, allocations: 1.316 MB / 383.7 MB, free: 9.242 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00204/0.304, allocations: 2.127 MB / 385.9 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005473/0.3095, allocations: 3.78 MB / 389.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01234/0.3218, allocations: 11.35 MB / 401 MB, free: 7.926 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.907e-06/0.3219, allocations: 8 kB / 401 MB, free: 7.918 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3219, allocations: 0 / 401 MB, free: 7.918 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000358/0.3223, allocations: 3.938 kB / 401 MB, free: 7.914 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.01828/0.3406, allocations: 7.411 MB / 408.4 MB, free: 428 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3406, allocations: 12.03 kB / 408.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005563/0.3462, allocations: 1.219 MB / 409.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007576/0.3538, allocations: 3.884 MB / 413.5 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003459/0.3541, allocations: 440 kB / 414 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008582/0.355, allocations: 0.5583 MB / 414.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.3678, allocations: 7.28 MB / 421.8 MB, free: 2.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001147/0.3679, allocations: 11.84 kB / 421.8 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005005/0.3685, allocations: 232 kB / 422 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002653/0.3687, allocations: 259.3 kB / 422.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.3803, allocations: 6.103 MB / 428.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04042/0.4208, allocations: 23.68 MB / 452.1 MB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1642/0.585, allocations: 8.718 MB / 460.8 MB, free: 98.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004336/0.5894, allocations: 2.379 MB / 463.2 MB, free: 98.63 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01077/0.6001, allocations: 6.95 MB / 470.1 MB, free: 95.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/0.6002, allocations: 56.47 kB / 470.2 MB, free: 95.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=238): time 4.529e-06/0.6002, allocations: 0 / 470.2 MB, free: 95.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=282): time 0.02877/0.629, allocations: 13.72 MB / 483.9 MB, free: 89.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.311e-05/0.6291, allocations: 80.09 kB / 484 MB, free: 89.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003841/0.6329, allocations: 3.424 MB / 487.4 MB, free: 86.58 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002165/0.6331, allocations: 73.7 kB / 487.5 MB, free: 86.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.6344, allocations: 2.69 MB / 490.2 MB, free: 83.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005871/0.635, allocations: 0.957 MB / 491.1 MB, free: 82.85 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007914/0.6358, allocations: 0.6446 MB / 491.8 MB, free: 82.2 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.588e-05/0.6358, allocations: 301.1 kB / 492.1 MB, free: 81.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002122/0.6379, allocations: 1.545 MB / 493.6 MB, free: 80.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002444/0.6404, allocations: 2.767 MB / 496.4 MB, free: 77.06 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004858/0.6453, allocations: 4.595 MB / 0.4892 GB, free: 71.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.828e-05/0.6453, allocations: 16 kB / 0.4892 GB, free: 71.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007796/0.6531, allocations: 5.471 MB / 0.4946 GB, free: 66.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.24e-05/0.6532, allocations: 20.62 kB / 0.4946 GB, free: 66.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.149e-05/0.6532, allocations: 44.03 kB / 0.4946 GB, free: 66.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001374/0.6546, allocations: 0.6608 MB / 0.4953 GB, free: 65.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/0.6576, allocations: 0.8696 MB / 0.4961 GB, free: 64.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007702/0.6653, allocations: 10.37 MB / 0.5063 GB, free: 53.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003404/0.6687, allocations: 223.5 kB / 0.5065 GB, free: 53.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003121/0.6691, allocations: 164 kB / 0.5066 GB, free: 53.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.00231/0.6714, allocations: 1.621 MB / 0.5082 GB, free: 51.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007345/0.6721, allocations: 387.3 kB / 0.5086 GB, free: 51.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006309/0.6784, allocations: 4.506 MB / 0.513 GB, free: 46.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.424e-05/0.6785, allocations: 31.94 kB / 0.513 GB, free: 46.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.6785, allocations: 8 kB / 0.513 GB, free: 46.74 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.229e-05/0.6785, allocations: 19.92 kB / 0.5131 GB, free: 46.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01255/0.6911, allocations: 9.918 MB / 0.5227 GB, free: 36.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.6911, allocations: 4 kB / 0.5227 GB, free: 36.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001988/0.6931, allocations: 0.5038 MB / 0.5232 GB, free: 36.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001567/0.6947, allocations: 0.723 MB / 0.5239 GB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001601/0.6949, allocations: 75.64 kB / 0.524 GB, free: 35.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009426/0.7043, allocations: 14.12 MB / 0.5378 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.7043, allocations: 12 kB / 0.5378 GB, free: 20.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008578/0.7129, allocations: 6.597 MB / 0.5443 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.7144, allocations: 0.7734 MB / 0.545 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004918/0.7149, allocations: 67.81 kB / 0.5451 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001836/0.7167, allocations: 167.8 kB / 0.5452 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004544/0.7172, allocations: 205.8 kB / 0.5454 GB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000161/0.7174, allocations: 79.97 kB / 0.5455 GB, free: 12.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003039/0.7204, allocations: 2.306 MB / 0.5478 GB, free: 9.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7204, allocations: 3.938 kB / 0.5478 GB, free: 9.875 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003199/0.7236, allocations: 1.096 MB / 0.5488 GB, free: 8.785 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.0005228/0.7242, allocations: 287.6 kB / 0.5491 GB, free: 8.504 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01205/0.7362, allocations: 6.657 MB / 0.5556 GB, free: 1.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.7363, allocations: 4 kB / 0.5556 GB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003994/0.7403, allocations: 2.837 MB / 0.5584 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004179/0.7445, allocations: 0.9095 MB / 0.5593 GB, free: 13.94 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0172/0.7617, allocations: 10.55 MB / 0.5696 GB, free: 3.293 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003291/0.765, allocations: 3.503 MB / 0.573 GB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003252/0.7683, allocations: 0.8562 MB / 0.5738 GB, free: 14.89 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008533/0.7692, allocations: 267.3 kB / 0.5741 GB, free: 14.63 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.7692, allocations: 3.938 kB / 0.5741 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Templates: time 0.2518/1.021, allocations: 53.69 MB / 0.6265 GB, free: 126.3 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1)