Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize") [: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.001835/0.001835, allocations: 189.5 kB / 8.132 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.129/1.129, allocations: 194.2 MB / 202.8 MB, free: 8.746 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.001745/0.001745, allocations: 118.3 kB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.627e-06, allocations: 3.938 kB / 297.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08806, allocations: 44.49 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2203/0.3084, allocations: 102.9 MB / 445 MB, free: 8.855 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.3087, allocations: 80.89 kB / 445.1 MB, free: 8.816 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1981/0.5068, allocations: 79.04 MB / 0.5118 GB, free: 364 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002413/0.5071, allocations: 79.88 kB / 0.5119 GB, free: 284 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.1454/0.6525, allocations: 3.201 MB / 0.515 GB, free: 52.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.6526, allocations: 12.72 kB / 0.515 GB, free: 52.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004214/0.6568, allocations: 0.7296 MB / 0.5157 GB, free: 52.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007287/0.6641, allocations: 3.36 MB / 0.519 GB, free: 51.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.598e-05/0.6642, allocations: 100.3 kB / 0.5191 GB, free: 51.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004965/0.6647, allocations: 194.9 kB / 0.5193 GB, free: 51.83 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005317/0.6701, allocations: 3.219 MB / 0.5224 GB, free: 51.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005605/0.6757, allocations: 3.684 MB / 0.526 GB, free: 51.45 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.597e-05/0.6758, allocations: 11.36 kB / 0.526 GB, free: 51.45 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002739/0.6761, allocations: 0 / 0.526 GB, free: 51.45 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001055/0.6762, allocations: 143.3 kB / 0.5262 GB, free: 51.44 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01852/0.6947, allocations: 13.04 MB / 0.5389 GB, free: 48.96 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.696, allocations: 1.061 MB / 0.54 GB, free: 48.94 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001818/0.6978, allocations: 1.378 MB / 0.5413 GB, free: 48.93 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00453/0.7023, allocations: 3.289 MB / 0.5445 GB, free: 48.28 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.7024, allocations: 54.59 kB / 0.5446 GB, free: 48.23 MB / 394.7 MB Notification: Performance of pre-optimization done (n=153): time 3.126e-06/0.7024, allocations: 3.406 kB / 0.5446 GB, free: 48.23 MB / 394.7 MB Notification: Performance of matching and sorting (n=173): time 0.01026/0.7127, allocations: 5.541 MB / 0.55 GB, free: 47.05 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.406e-05/0.7127, allocations: 68.28 kB / 0.55 GB, free: 46.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00176/0.7145, allocations: 1.361 MB / 0.5514 GB, free: 46.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.981e-05/0.7146, allocations: 29.45 kB / 0.5514 GB, free: 46.79 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.7151, allocations: 1.135 MB / 0.5525 GB, free: 46.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002941/0.7154, allocations: 0.5613 MB / 0.5531 GB, free: 45.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.072e-05/0.7155, allocations: 2.781 kB / 0.5531 GB, free: 45.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.841e-05/0.7156, allocations: 391 kB / 0.5534 GB, free: 45.43 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.7167, allocations: 0.8205 MB / 0.5542 GB, free: 45.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.7179, allocations: 1.272 MB / 0.5555 GB, free: 44.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.7195, allocations: 1.108 MB / 0.5566 GB, free: 44.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.7196, allocations: 3.312 kB / 0.5566 GB, free: 44.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=247) (initialization): time 0.004569/0.7241, allocations: 2.744 MB / 0.5592 GB, free: 44.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.7242, allocations: 3.156 kB / 0.5592 GB, free: 44.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.7242, allocations: 17.03 kB / 0.5593 GB, free: 44.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001364/0.7256, allocations: 0.4995 MB / 0.5597 GB, free: 44.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0018/0.7274, allocations: 436.8 kB / 0.5602 GB, free: 44.6 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006781/0.7342, allocations: 5.945 MB / 0.566 GB, free: 40.52 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001493/0.7357, allocations: 48.69 kB / 0.566 GB, free: 40.51 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.7358, allocations: 82.67 kB / 0.5661 GB, free: 40.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,56.2%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002881/0.7361, allocations: 147.7 kB / 0.5662 GB, free: 40.38 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.7364, allocations: 186 kB / 0.5664 GB, free: 40.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004345/0.7408, allocations: 2.651 MB / 0.569 GB, free: 39.11 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/0.7408, allocations: 18.66 kB / 0.569 GB, free: 39.11 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7408, allocations: 11.72 kB / 0.569 GB, free: 39.1 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.517e-05/0.7408, allocations: 11.34 kB / 0.569 GB, free: 39.1 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008219/0.7491, allocations: 5.709 MB / 0.5746 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.7491, allocations: 3.938 kB / 0.5746 GB, free: 36.37 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001299/0.7504, allocations: 263.4 kB / 0.5749 GB, free: 36.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.7518, allocations: 0.4921 MB / 0.5754 GB, free: 36.19 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.7519, allocations: 15.73 kB / 0.5754 GB, free: 36.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008407/0.7604, allocations: 9.797 MB / 0.5849 GB, free: 28.12 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.7604, allocations: 2.125 kB / 0.5849 GB, free: 28.12 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005876/0.7663, allocations: 3.958 MB / 0.5888 GB, free: 26.13 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.7674, allocations: 475.5 kB / 0.5893 GB, free: 25.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005531/0.7679, allocations: 12.44 kB / 0.5893 GB, free: 25.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001347/0.7693, allocations: 55.06 kB / 0.5893 GB, free: 25.79 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.7695, allocations: 87.14 kB / 0.5894 GB, free: 25.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.7696, allocations: 45.03 kB / 0.5894 GB, free: 25.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001647/0.7713, allocations: 1.027 MB / 0.5904 GB, free: 25.34 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002447/0.7738, allocations: 0.5572 MB / 0.591 GB, free: 25.32 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,aimc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005313/0.7743, allocations: 341.6 kB / 0.5913 GB, free: 25.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003921/0.7782, allocations: 2.421 MB / 0.5937 GB, free: 24.19 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7783, allocations: 2.375 kB / 0.5937 GB, free: 24.19 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002284/0.7805, allocations: 1.643 MB / 0.5953 GB, free: 23.26 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001985/0.7825, allocations: 353.1 kB / 0.5956 GB, free: 23.16 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009859/0.7924, allocations: 4.967 MB / 0.6005 GB, free: 21.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002464/0.7949, allocations: 2.558 MB / 0.603 GB, free: 19.95 MB / 394.7 MB Notification: Performance of SimCode: time 7.82e-07/0.7949, allocations: 2.844 kB / 0.603 GB, free: 19.95 MB / 394.7 MB Notification: Performance of Templates: time 0.04643/0.8414, allocations: 29.16 MB / 0.6315 GB, free: 11.58 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1)