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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,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=12000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.005321/0.005321, allocations: 172.5 kB / 7.446 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.241/1.241, allocations: 170.6 MB / 178.4 MB, free: 15.37 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001757/0.001756, allocations: 123.8 kB / 217.7 MB, free: 8.137 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/8.125e-06, allocations: 0 / 261.8 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.08569, allocations: 38.76 MB / 300.5 MB, free: 3.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3194/0.4052, allocations: 121.4 MB / 421.9 MB, free: 12.04 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002598/0.4055, allocations: 81.52 kB / 422 MB, free: 12 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4702/0.8757, allocations: 122.6 MB / 0.5319 GB, free: 59.51 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0007755/0.8766, allocations: 135.8 kB / 0.532 GB, free: 59.38 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1422 * Number of variables: 1422 Notification: Performance of Generate backend data structure: time 0.01879/0.8954, allocations: 5.258 MB / 0.5371 GB, free: 54.06 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/0.8954, allocations: 8.031 kB / 0.5371 GB, free: 54.05 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006076/0.9015, allocations: 0.8943 MB / 0.538 GB, free: 53.15 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01488/0.9164, allocations: 3.968 MB / 0.5419 GB, free: 49.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004597/0.917, allocations: 176 kB / 0.5421 GB, free: 48.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003043/0.92, allocations: 323.9 kB / 0.5424 GB, free: 48.67 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01744/0.9375, allocations: 4.884 MB / 0.5471 GB, free: 43.79 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/0.962, allocations: 5.981 MB / 0.553 GB, free: 37.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004715/0.9625, allocations: 15.84 kB / 0.553 GB, free: 37.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003051/0.9656, allocations: 4 kB / 0.553 GB, free: 37.59 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002713/0.9659, allocations: 242.7 kB / 0.5532 GB, free: 37.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05791/1.024, allocations: 21.57 MB / 0.5743 GB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003495/1.027, allocations: 1.646 MB / 0.5759 GB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003709/1.031, allocations: 2.039 MB / 0.5779 GB, free: 11.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005536/1.032, allocations: 150.9 kB / 0.578 GB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.722e-05/1.032, allocations: 64.55 kB / 0.5781 GB, free: 11.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=249): time 7.233e-06/1.032, allocations: 4 kB / 0.5781 GB, free: 11.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=303): time 0.02787/1.06, allocations: 10.05 MB / 0.5879 GB, free: 1.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/1.06, allocations: 85.77 kB / 0.588 GB, free: 1.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1912/1.251, allocations: 2.324 MB / 0.5903 GB, free: 81.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006684/1.252, allocations: 25.7 kB / 0.5903 GB, free: 81.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/1.253, allocations: 2.027 MB / 0.5923 GB, free: 81.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009161/1.254, allocations: 0.9892 MB / 0.5932 GB, free: 81.09 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/1.254, allocations: 0 / 0.5932 GB, free: 81.09 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/1.254, allocations: 448.2 kB / 0.5937 GB, free: 80.78 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002058/1.256, allocations: 1.493 MB / 0.5951 GB, free: 80.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002517/1.259, allocations: 2.558 MB / 0.5976 GB, free: 79.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0028/1.262, allocations: 1.977 MB / 0.5996 GB, free: 79.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.107e-05/1.262, allocations: 10.22 kB / 0.5996 GB, free: 79.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=468) (initialization): time 0.008788/1.27, allocations: 5.156 MB / 0.6046 GB, free: 79.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/1.271, allocations: 6.531 kB / 0.6046 GB, free: 79.03 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.063e-05/1.271, allocations: 35.41 kB / 0.6046 GB, free: 79.03 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00235/1.273, allocations: 0.9482 MB / 0.6056 GB, free: 78.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003575/1.277, allocations: 0.8206 MB / 0.6064 GB, free: 78.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01165/1.288, allocations: 9.884 MB / 0.616 GB, free: 75.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004141/1.292, allocations: 140.5 kB / 0.6161 GB, free: 75.04 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005531/1.293, allocations: 164.8 kB / 0.6163 GB, free: 75.04 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 155 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (405): * Single equations (assignments): 396 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(4,93.8%) 21,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006623/1.294, allocations: 202.2 kB / 0.6165 GB, free: 74.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007453/1.294, allocations: 354.7 kB / 0.6168 GB, free: 74.73 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007973/1.302, allocations: 4.55 MB / 0.6213 GB, free: 74.31 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.562e-05/1.302, allocations: 30.28 kB / 0.6213 GB, free: 74.31 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.84e-05/1.303, allocations: 10.38 kB / 0.6213 GB, free: 74.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.983e-05/1.303, allocations: 16.2 kB / 0.6213 GB, free: 74.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02162/1.324, allocations: 10.06 MB / 0.6312 GB, free: 73.23 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005855/1.33, allocations: 3.769 MB / 0.6348 GB, free: 72.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002272/1.332, allocations: 0.4946 MB / 0.6353 GB, free: 72.85 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002759/1.335, allocations: 1.023 MB / 0.6363 GB, free: 72.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003128/1.336, allocations: 33.19 kB / 0.6364 GB, free: 72.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/1.349, allocations: 13.22 MB / 0.6493 GB, free: 63.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/1.349, allocations: 12.56 kB / 0.6493 GB, free: 63.39 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01077/1.36, allocations: 7.615 MB / 0.6567 GB, free: 59.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002679/1.362, allocations: 0.7466 MB / 0.6574 GB, free: 58.74 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001278/1.364, allocations: 32.75 kB / 0.6575 GB, free: 58.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002551/1.366, allocations: 122.4 kB / 0.6576 GB, free: 58.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003552/1.366, allocations: 181.4 kB / 0.6578 GB, free: 58.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002199/1.367, allocations: 90.58 kB / 0.6579 GB, free: 58.68 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003454/1.37, allocations: 1.714 MB / 0.6595 GB, free: 57.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00552/1.376, allocations: 0.9749 MB / 0.6605 GB, free: 57.97 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.port_n.Phi.re,smeeM.stator.port_n.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (233): * Single equations (assignments): 224 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009764/1.377, allocations: 449.8 kB / 0.6609 GB, free: 57.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007429/1.384, allocations: 4.606 MB / 0.6654 GB, free: 55.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.327e-05/1.384, allocations: 3.781 kB / 0.6654 GB, free: 55.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004683/1.389, allocations: 2.858 MB / 0.6682 GB, free: 54.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004335/1.393, allocations: 0.584 MB / 0.6688 GB, free: 54.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02011/1.413, allocations: 8.557 MB / 0.6771 GB, free: 46.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004009/1.417, allocations: 3.78 MB / 0.6808 GB, free: 43.78 MB / 346.7 MB Notification: Performance of SimCode: time 7.91e-07/1.417, allocations: 0 / 0.6808 GB, free: 43.78 MB / 346.7 MB Notification: Performance of Templates: time 0.08429/1.502, allocations: 47.33 MB / 0.727 GB, free: 8.523 MB / 346.7 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)