Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses") [: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.005762/0.005761, allocations: 178.2 kB / 7.451 MB, free: 2.234 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.294/1.294, 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.001708/0.001708, allocations: 109 kB / 217.7 MB, free: 8.148 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.673e-06/6.693e-06, allocations: 0 / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08895/0.08897, allocations: 38.76 MB / 300.5 MB, free: 3.883 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2882/0.3772, allocations: 97.59 MB / 398.1 MB, free: 3.266 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.3775, allocations: 85.95 kB / 398.2 MB, free: 3.223 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.1386/0.5161, allocations: 48.04 MB / 446.2 MB, free: 8.961 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0003352/0.5165, allocations: 55.94 kB / 446.3 MB, free: 8.906 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.009861/0.5264, allocations: 2.422 MB / 448.7 MB, free: 6.418 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.035e-05/0.5265, allocations: 8.031 kB / 448.7 MB, free: 6.41 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002566/0.5291, allocations: 332.3 kB / 449 MB, free: 6.082 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005991/0.5351, allocations: 1.728 MB / 450.8 MB, free: 4.305 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001516/0.5353, allocations: 67.91 kB / 450.8 MB, free: 4.238 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009559/0.5362, allocations: 120 kB / 450.9 MB, free: 4.121 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005388/0.5416, allocations: 1.98 MB / 452.9 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006495/0.5482, allocations: 2.334 MB / 455.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.17e-05/0.5483, allocations: 0 / 455.3 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000428/0.5487, allocations: 4 kB / 455.3 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.5488, allocations: 87.89 kB / 455.3 MB, free: 15.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01746/0.5663, allocations: 7.944 MB / 463.3 MB, free: 7.469 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001961/0.5683, allocations: 0.9044 MB / 464.2 MB, free: 6.562 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/0.5698, allocations: 0.8822 MB / 465.1 MB, free: 5.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003834/0.5702, allocations: 146 kB / 465.2 MB, free: 5.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.819e-05/0.5703, allocations: 43.56 kB / 465.3 MB, free: 5.465 MB / 346.7 MB Notification: Performance of pre-optimization done (n=115): time 2.906e-06/0.5703, allocations: 0 / 465.3 MB, free: 5.465 MB / 346.7 MB Notification: Performance of matching and sorting (n=131): time 0.01072/0.581, allocations: 4.813 MB / 470.1 MB, free: 0.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.5811, allocations: 64.72 kB / 470.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1372/0.7183, allocations: 1.646 MB / 471.8 MB, free: 120.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003064/0.7186, allocations: 25.7 kB / 471.8 MB, free: 120.9 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003514/0.719, allocations: 0.7826 MB / 472.6 MB, free: 120.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003381/0.7193, allocations: 433.8 kB / 473 MB, free: 120.7 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.271e-05/0.7194, allocations: 1.531 kB / 473 MB, free: 120.7 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.463e-05/0.7195, allocations: 361.1 kB / 473.4 MB, free: 120.4 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009092/0.7204, allocations: 0.7051 MB / 474.1 MB, free: 120.3 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.7215, allocations: 0.9448 MB / 475 MB, free: 120.1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001129/0.7226, allocations: 0.8509 MB / 475.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.7226, allocations: 3.562 kB / 475.9 MB, free: 120.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004404/0.727, allocations: 2.599 MB / 478.5 MB, free: 119.9 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.7271, allocations: 3 kB / 478.5 MB, free: 119.9 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.497e-05/0.7271, allocations: 10.41 kB / 478.5 MB, free: 119.9 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002086/0.7292, allocations: 0.8417 MB / 479.3 MB, free: 119.9 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.7303, allocations: 262.5 kB / 479.6 MB, free: 119.9 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.7404, allocations: 8.437 MB / 488 MB, free: 117.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.742, allocations: 57.86 kB / 488.1 MB, free: 117.2 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.7422, allocations: 57.92 kB / 488.1 MB, free: 117.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * 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%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.7425, allocations: 127.6 kB / 488.3 MB, free: 117.1 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003325/0.7428, allocations: 194.7 kB / 488.5 MB, free: 117 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003995/0.7468, allocations: 2.377 MB / 490.8 MB, free: 116.9 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.7469, allocations: 15.28 kB / 490.8 MB, free: 116.9 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.7469, allocations: 6.375 kB / 490.9 MB, free: 116.9 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/0.7469, allocations: 7.078 kB / 490.9 MB, free: 116.9 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007556/0.7545, allocations: 4.627 MB / 495.5 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.531e-05/0.7545, allocations: 3.125 kB / 495.5 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/0.7555, allocations: 203 kB / 495.7 MB, free: 116.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001883/0.7574, allocations: 0.7089 MB / 496.4 MB, free: 116.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.7576, allocations: 15.08 kB / 496.4 MB, free: 116.4 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007685/0.7653, allocations: 7.842 MB / 0.4924 GB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/0.7653, allocations: 6.781 kB / 0.4924 GB, free: 111.8 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005028/0.7703, allocations: 3.485 MB / 0.4958 GB, free: 110.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.7714, allocations: 458.7 kB / 0.4963 GB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/0.7717, allocations: 7.438 kB / 0.4963 GB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009865/0.7727, allocations: 69.14 kB / 0.4964 GB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001815/0.7729, allocations: 74.86 kB / 0.4964 GB, free: 110.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.773, allocations: 42.41 kB / 0.4965 GB, free: 110.1 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.00167/0.7747, allocations: 1.255 MB / 0.4977 GB, free: 109.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001819/0.7765, allocations: 0.4899 MB / 0.4982 GB, free: 109.6 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008006/0.7773, allocations: 378.5 kB / 0.4985 GB, free: 109.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003583/0.7809, allocations: 2.237 MB / 0.5007 GB, free: 108.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.7809, allocations: 2.344 kB / 0.5007 GB, free: 108.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002202/0.7831, allocations: 1.517 MB / 0.5022 GB, free: 107.7 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/0.7851, allocations: 314.4 kB / 0.5025 GB, free: 107.6 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009226/0.7944, allocations: 4.218 MB / 0.5066 GB, free: 106.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002264/0.7967, allocations: 2.075 MB / 0.5086 GB, free: 104.7 MB / 346.7 MB Notification: Performance of SimCode: time 1.373e-06/0.7967, allocations: 4 kB / 0.5086 GB, free: 104.7 MB / 346.7 MB Notification: Performance of Templates: time 0.04484/0.8415, allocations: 25.6 MB / 0.5336 GB, free: 88.04 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1)