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_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=12000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase") [: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.004096/0.004096, allocations: 182.2 kB / 7.455 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.295/1.295, allocations: 170.6 MB / 178.4 MB, free: 15.38 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.001745/0.001745, allocations: 115.8 kB / 217.7 MB, free: 8.141 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.855e-06/7.895e-06, allocations: 0 / 261.8 MB, free: 26.63 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08751, allocations: 38.76 MB / 300.5 MB, free: 3.867 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3039/0.3915, allocations: 106.2 MB / 406.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/0.3919, allocations: 79.08 kB / 406.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 0.6296/1.021, allocations: 179.3 MB / 0.5723 GB, free: 16.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006554/1.022, allocations: 203.7 kB / 0.5725 GB, free: 16.7 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: 2140 * Number of variables: 2140 Notification: Performance of Generate backend data structure: time 0.02441/1.047, allocations: 7.641 MB / 0.58 GB, free: 8.973 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/1.047, allocations: 8.031 kB / 0.58 GB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007934/1.055, allocations: 1.344 MB / 0.5813 GB, free: 7.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01473/1.069, allocations: 5.901 MB / 0.5871 GB, free: 1.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004014/1.07, allocations: 264 kB / 0.5873 GB, free: 1.453 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003322/1.073, allocations: 479.8 kB / 0.5878 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2139/1.287, allocations: 7.389 MB / 0.595 GB, free: 53.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02724/1.314, allocations: 9.076 MB / 0.6039 GB, free: 52.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002693/1.315, allocations: 9.547 kB / 0.6039 GB, free: 52.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001427/1.316, allocations: 6.219 kB / 0.6039 GB, free: 52.98 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003106/1.316, allocations: 340.8 kB / 0.6042 GB, free: 52.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06773/1.384, allocations: 31.7 MB / 0.6352 GB, free: 46.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003306/1.387, allocations: 1.976 MB / 0.6371 GB, free: 46.8 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004345/1.392, allocations: 2.962 MB / 0.64 GB, free: 46.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001646/1.392, allocations: 43.88 kB / 0.64 GB, free: 46.76 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.19e-05/1.392, allocations: 67.31 kB / 0.6401 GB, free: 46.72 MB / 346.7 MB Notification: Performance of pre-optimization done (n=297): time 5.71e-06/1.392, allocations: 1.312 kB / 0.6401 GB, free: 46.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=355): time 0.02397/1.416, allocations: 11.2 MB / 0.651 GB, free: 43.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/1.416, allocations: 88.62 kB / 0.6511 GB, free: 43.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005737/1.422, allocations: 3.105 MB / 0.6541 GB, free: 42.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.423, allocations: 28.95 kB / 0.6542 GB, free: 42.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.424, allocations: 2.961 MB / 0.6571 GB, free: 40.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001228/1.426, allocations: 1.153 MB / 0.6582 GB, free: 39.5 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/1.426, allocations: 0 / 0.6582 GB, free: 39.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002203/1.426, allocations: 474.7 kB / 0.6586 GB, free: 39.12 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/1.428, allocations: 1.698 MB / 0.6603 GB, free: 38.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002809/1.431, allocations: 2.957 MB / 0.6632 GB, free: 36.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002814/1.434, allocations: 2.269 MB / 0.6654 GB, free: 35.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-05/1.434, allocations: 14.16 kB / 0.6654 GB, free: 35.2 MB / 346.7 MB Notification: Performance of matching and sorting (n=543) (initialization): time 0.009847/1.444, allocations: 5.787 MB / 0.6711 GB, free: 33.07 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/1.444, allocations: 7.312 kB / 0.6711 GB, free: 33.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/1.444, allocations: 46.45 kB / 0.6711 GB, free: 33.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002486/1.447, allocations: 0.9352 MB / 0.672 GB, free: 32.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004217/1.451, allocations: 0.9508 MB / 0.673 GB, free: 32.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01261/1.464, allocations: 11.57 MB / 0.6842 GB, free: 24.61 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005243/1.469, allocations: 135.6 kB / 0.6844 GB, free: 24.59 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009474/1.47, allocations: 190.8 kB / 0.6846 GB, free: 24.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 183 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (467): * Single equations (assignments): 459 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(4,93.8%) 21,(1,100.0%) 5,(4,93.8%) 21,(1,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008957/1.471, allocations: 229.5 kB / 0.6848 GB, free: 24.4 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001175/1.472, allocations: 430.1 kB / 0.6852 GB, free: 24.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009554/1.481, allocations: 5.043 MB / 0.6901 GB, free: 22.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.448e-05/1.482, allocations: 38.84 kB / 0.6902 GB, free: 22.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.543e-05/1.482, allocations: 15.16 kB / 0.6902 GB, free: 22.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-05/1.482, allocations: 18.58 kB / 0.6902 GB, free: 22.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02887/1.51, allocations: 12.87 MB / 0.7028 GB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.797e-05/1.511, allocations: 12 kB / 0.7028 GB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002477/1.513, allocations: 0.5782 MB / 0.7033 GB, free: 13.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002712/1.516, allocations: 1.072 MB / 0.7044 GB, free: 12.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003354/1.516, allocations: 37.48 kB / 0.7044 GB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2111/1.727, allocations: 14.75 MB / 0.7188 GB, free: 44.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-05/1.727, allocations: 15.72 kB / 0.7188 GB, free: 44.41 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01516/1.742, allocations: 9.059 MB / 0.7277 GB, free: 41.93 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003809/1.746, allocations: 0.91 MB / 0.7286 GB, free: 41.84 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002251/1.749, allocations: 24.45 kB / 0.7286 GB, free: 41.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004489/1.753, allocations: 146.4 kB / 0.7287 GB, free: 41.84 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005838/1.754, allocations: 222.5 kB / 0.7289 GB, free: 41.83 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003518/1.754, allocations: 114.6 kB / 0.729 GB, free: 41.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.004824/1.759, allocations: 2.307 MB / 0.7313 GB, free: 41.65 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006061/1.765, allocations: 1.251 MB / 0.7325 GB, free: 41.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * 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,smee3.phiMechanical,smee3.stator.port_n.Phi.re,smee3.stator.port_n.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (264): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,(4,93.8%) 32,(4,93.8%) 19,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000933/1.766, allocations: 488.1 kB / 0.733 GB, free: 41.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01043/1.776, allocations: 5.181 MB / 0.7381 GB, free: 40.82 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.812e-05/1.776, allocations: 3.938 kB / 0.7381 GB, free: 40.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00857/1.785, allocations: 3.43 MB / 0.7414 GB, free: 40.21 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006895/1.792, allocations: 0.7412 MB / 0.7421 GB, free: 40.19 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03068/1.823, allocations: 11.86 MB / 0.7537 GB, free: 37.51 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008597/1.831, allocations: 5.369 MB / 0.759 GB, free: 36.62 MB / 346.7 MB Notification: Performance of SimCode: time 1.233e-06/1.831, allocations: 0 / 0.759 GB, free: 36.62 MB / 346.7 MB Notification: Performance of Templates: time 0.1023/1.934, allocations: 57.05 MB / 0.8147 GB, free: 26.06 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.pipe 2>&1)