Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter") [: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.001229/0.001229, allocations: 192.1 kB / 8.138 MB, free: 2.207 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.061/1.061, allocations: 194.2 MB / 202.8 MB, free: 8.652 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.001803/0.001803, allocations: 116.5 kB / 247.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 7.043e-06/7.053e-06, allocations: 4 kB / 297.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06943/0.06945, allocations: 44.49 MB / 342.1 MB, free: 11.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/0.271, allocations: 97.05 MB / 439.1 MB, free: 14.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002146/0.2713, allocations: 93.59 kB / 439.2 MB, free: 14.24 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.1112/0.3825, allocations: 39.51 MB / 478.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001128/0.3827, allocations: 47.94 kB / 478.8 MB, free: 13.88 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.003718/0.3864, allocations: 1.933 MB / 480.7 MB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3864, allocations: 15.97 kB / 480.7 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007784/0.3872, allocations: 253.2 kB / 481 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002657/0.3899, allocations: 1.343 MB / 482.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.19e-05/0.39, allocations: 60 kB / 482.4 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000253/0.3902, allocations: 107.9 kB / 482.5 MB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003033/0.3933, allocations: 1.725 MB / 484.2 MB, free: 8.551 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00339/0.3967, allocations: 2.054 MB / 486.2 MB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.724e-05/0.3967, allocations: 19.83 kB / 486.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001634/0.3969, allocations: 0 / 486.3 MB, free: 6.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-05/0.397, allocations: 79.52 kB / 486.3 MB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01056/0.4076, allocations: 6.852 MB / 493.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.4087, allocations: 0.6956 MB / 493.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001154/0.4098, allocations: 0.7362 MB / 494.6 MB, free: 13.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002637/0.4101, allocations: 129.8 kB / 494.7 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.4102, allocations: 43.34 kB / 494.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of pre-optimization done (n=90): time 2.575e-06/0.4102, allocations: 4 kB / 494.8 MB, free: 13.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=113): time 0.009381/0.4196, allocations: 4.58 MB / 499.4 MB, free: 9.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.4196, allocations: 64.41 kB / 499.4 MB, free: 8.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.4208, allocations: 0.8547 MB / 0.4886 GB, free: 8.059 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.714e-05/0.4209, allocations: 25.7 kB / 0.4886 GB, free: 8.027 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003787/0.4213, allocations: 0.6966 MB / 0.4893 GB, free: 7.316 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002818/0.4216, allocations: 386.2 kB / 0.4896 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.701e-05/0.4216, allocations: 3.938 kB / 0.4896 GB, free: 6.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4218, allocations: 361.9 kB / 0.49 GB, free: 6.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009203/0.4227, allocations: 0.6273 MB / 0.4906 GB, free: 5.945 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.4238, allocations: 0.9278 MB / 0.4915 GB, free: 4.891 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.425, allocations: 0.7797 MB / 0.4923 GB, free: 4.109 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.425, allocations: 0 / 0.4923 GB, free: 4.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003811/0.4288, allocations: 2.212 MB / 0.4944 GB, free: 1.875 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.4288, allocations: 4 kB / 0.4944 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.4289, allocations: 12.25 kB / 0.4944 GB, free: 1.859 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001733/0.4306, allocations: 0.6377 MB / 0.4951 GB, free: 1.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.4318, allocations: 271.6 kB / 0.4953 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007022/0.4388, allocations: 5.747 MB / 0.5009 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009768/0.4398, allocations: 55.84 kB / 0.501 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.4399, allocations: 52 kB / 0.501 GB, free: 10.86 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 2 {(5,76.0%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002304/0.4402, allocations: 138.2 kB / 0.5012 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002214/0.4404, allocations: 126.5 kB / 0.5013 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003888/0.4443, allocations: 2.081 MB / 0.5033 GB, free: 8.488 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4443, allocations: 12 kB / 0.5033 GB, free: 8.477 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/0.4443, allocations: 11.91 kB / 0.5033 GB, free: 8.465 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.4444, allocations: 7.969 kB / 0.5034 GB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007094/0.4515, allocations: 4.054 MB / 0.5073 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.4515, allocations: 4.344 kB / 0.5073 GB, free: 4.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008578/0.4523, allocations: 171.8 kB / 0.5075 GB, free: 4.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002088/0.4544, allocations: 0.7058 MB / 0.5082 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.221e-05/0.4546, allocations: 15.98 kB / 0.5082 GB, free: 3.402 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09938/0.5539, allocations: 7.392 MB / 0.5154 GB, free: 138.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.554, allocations: 6.531 kB / 0.5154 GB, free: 138.7 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004169/0.5582, allocations: 3.201 MB / 0.5185 GB, free: 138.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005599/0.5587, allocations: 342.5 kB / 0.5189 GB, free: 138.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002245/0.559, allocations: 14.25 kB / 0.5189 GB, free: 138.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/0.5598, allocations: 53.59 kB / 0.5189 GB, free: 138.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.56, allocations: 70.17 kB / 0.519 GB, free: 138.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.5601, allocations: 43.69 kB / 0.519 GB, free: 138.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0007966/0.5609, allocations: 0.6416 MB / 0.5197 GB, free: 138.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00113/0.562, allocations: 392.5 kB / 0.52 GB, free: 138.1 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(7,59.2%) 21,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003869/0.5624, allocations: 283.2 kB / 0.5203 GB, free: 138 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002632/0.565, allocations: 2.074 MB / 0.5223 GB, free: 137.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5651, allocations: 3.281 kB / 0.5223 GB, free: 137.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.567, allocations: 1.398 MB / 0.5237 GB, free: 137.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001203/0.5682, allocations: 258.5 kB / 0.5239 GB, free: 137.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004961/0.5732, allocations: 3.242 MB / 0.5271 GB, free: 136.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/0.5745, allocations: 1.758 MB / 0.5288 GB, free: 135.7 MB / 394.7 MB Notification: Performance of SimCode: time 5e-07/0.5745, allocations: 0 / 0.5288 GB, free: 135.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03069/0.6052, allocations: 20.61 MB / 0.549 GB, free: 134.5 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Inverter.pipe 2>&1)