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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [: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.2+maint.om/package.mo): time 0.001951/0.001952, allocations: 191.6 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.332/1.332, allocations: 194.2 MB / 202.8 MB, free: 8.758 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001831/0.001832, allocations: 120.1 kB / 247.7 MB, free: 6.281 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.714e-06/7.965e-06, allocations: 4 kB / 297.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07392/0.07394, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.244/0.318, allocations: 129.5 MB / 471.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002202/0.3182, allocations: 81.95 kB / 471.7 MB, free: 14.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.4443/0.7625, allocations: 128.9 MB / 0.5864 GB, free: 70.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005766/0.7631, allocations: 135.5 kB / 0.5866 GB, free: 70.23 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01633/0.7795, allocations: 5.404 MB / 0.5918 GB, free: 66.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.7795, allocations: 14.25 kB / 0.5919 GB, free: 66.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007024/0.7865, allocations: 1.163 MB / 0.593 GB, free: 66.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01243/0.799, allocations: 4.903 MB / 0.5978 GB, free: 63.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000219/0.7992, allocations: 186.8 kB / 0.598 GB, free: 63.05 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/0.8007, allocations: 341.1 kB / 0.5983 GB, free: 63.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01039/0.8111, allocations: 5.303 MB / 0.6035 GB, free: 59.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01217/0.8233, allocations: 6.268 MB / 0.6096 GB, free: 52.99 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001755/0.8235, allocations: 7.906 kB / 0.6096 GB, free: 52.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007003/0.8242, allocations: 8 kB / 0.6096 GB, free: 52.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001638/0.8244, allocations: 247.2 kB / 0.6098 GB, free: 52.73 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03723/0.8616, allocations: 22.89 MB / 0.6322 GB, free: 29.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00281/0.8645, allocations: 1.882 MB / 0.634 GB, free: 27.53 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002744/0.8672, allocations: 2.255 MB / 0.6362 GB, free: 25.27 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01147/0.8787, allocations: 7.187 MB / 0.6433 GB, free: 17.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.8788, allocations: 68.72 kB / 0.6433 GB, free: 17.89 MB / 394.7 MB Notification: Performance of pre-optimization done (n=277): time 4.789e-06/0.8788, allocations: 0 / 0.6433 GB, free: 17.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=329): time 0.02092/0.8997, allocations: 10.77 MB / 0.6538 GB, free: 7.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.051e-05/0.8998, allocations: 89.95 kB / 0.6539 GB, free: 6.926 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004106/0.9039, allocations: 2.391 MB / 0.6563 GB, free: 4.535 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003433/0.9043, allocations: 33.69 kB / 0.6563 GB, free: 4.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008207/0.9051, allocations: 2.106 MB / 0.6583 GB, free: 2.359 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006985/0.9058, allocations: 1.074 MB / 0.6594 GB, free: 1.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002003/0.906, allocations: 4 kB / 0.6594 GB, free: 1.266 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.9062, allocations: 470.5 kB / 0.6598 GB, free: 0.7969 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1354/1.042, allocations: 1.601 MB / 0.6614 GB, free: 95.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/1.044, allocations: 2.764 MB / 0.6641 GB, free: 94.13 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003237/1.048, allocations: 2.16 MB / 0.6662 GB, free: 94.08 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.735e-05/1.048, allocations: 10.06 kB / 0.6662 GB, free: 94.08 MB / 394.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.008977/1.057, allocations: 5.46 MB / 0.6716 GB, free: 93.84 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/1.057, allocations: 4.25 kB / 0.6716 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.177e-05/1.057, allocations: 46 kB / 0.6716 GB, free: 93.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002214/1.059, allocations: 0.8573 MB / 0.6724 GB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003662/1.063, allocations: 0.9245 MB / 0.6734 GB, free: 93.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009403/1.072, allocations: 8.953 MB / 0.6821 GB, free: 90.03 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003454/1.076, allocations: 141.2 kB / 0.6822 GB, free: 90.03 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004077/1.076, allocations: 181.3 kB / 0.6824 GB, free: 90.03 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 170 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (461): * Single equations (assignments): 452 * 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,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006235/1.077, allocations: 223.9 kB / 0.6826 GB, free: 89.92 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006656/1.077, allocations: 362.5 kB / 0.683 GB, free: 89.92 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008052/1.085, allocations: 4.818 MB / 0.6877 GB, free: 89.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.468e-05/1.085, allocations: 34.95 kB / 0.6877 GB, free: 89.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.49e-05/1.085, allocations: 13.38 kB / 0.6877 GB, free: 89.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.831e-05/1.086, allocations: 17.3 kB / 0.6877 GB, free: 89.52 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01585/1.101, allocations: 10.04 MB / 0.6975 GB, free: 88.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006024/1.107, allocations: 4.015 MB / 0.7015 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002605/1.11, allocations: 0.5566 MB / 0.702 GB, free: 88.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002412/1.112, allocations: 0.9408 MB / 0.7029 GB, free: 88.13 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002639/1.113, allocations: 30.2 kB / 0.7029 GB, free: 88.13 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/1.125, allocations: 12.42 MB / 0.7151 GB, free: 80.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/1.125, allocations: 7.25 kB / 0.7151 GB, free: 80.75 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01078/1.136, allocations: 7.533 MB / 0.7224 GB, free: 77.04 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00194/1.138, allocations: 0.7865 MB / 0.7232 GB, free: 76.54 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006826/1.138, allocations: 19.3 kB / 0.7232 GB, free: 76.54 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/1.14, allocations: 132.1 kB / 0.7234 GB, free: 76.54 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003514/1.141, allocations: 182.6 kB / 0.7235 GB, free: 76.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002253/1.141, allocations: 94.78 kB / 0.7236 GB, free: 76.48 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002478/1.144, allocations: 1.755 MB / 0.7253 GB, free: 75.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003712/1.147, allocations: 1.044 MB / 0.7264 GB, free: 75.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 257 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008344/1.148, allocations: 471.7 kB / 0.7268 GB, free: 75.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006315/1.154, allocations: 4.819 MB / 0.7315 GB, free: 73.59 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.154, allocations: 0.9688 kB / 0.7315 GB, free: 73.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004527/1.159, allocations: 2.868 MB / 0.7343 GB, free: 72.23 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003478/1.162, allocations: 0.585 MB / 0.7349 GB, free: 72.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.18, allocations: 8.75 MB / 0.7434 GB, free: 68.62 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004352/1.185, allocations: 3.862 MB / 0.7472 GB, free: 67.3 MB / 394.7 MB Notification: Performance of SimCode: time 5.72e-07/1.185, allocations: 1.781 kB / 0.7472 GB, free: 67.3 MB / 394.7 MB Notification: Performance of Templates: time 0.08286/1.268, allocations: 51.26 MB / 0.7973 GB, free: 32.95 MB / 394.7 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)