Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001603/0.001602, allocations: 189.3 kB / 8.133 MB, free: 2.195 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.145/1.145, allocations: 194.2 MB / 202.8 MB, free: 8.738 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.001807/0.001807, allocations: 120.1 kB / 247.7 MB, free: 6.234 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 9.357e-06/9.387e-06, allocations: 4 kB / 297.6 MB, free: 7.988 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.07925, allocations: 44.48 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2493/0.3286, allocations: 102.3 MB / 444.4 MB, free: 9.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.3289, allocations: 86.81 kB / 444.5 MB, free: 9.117 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.2024/0.5313, allocations: 78.23 MB / 0.5104 GB, free: 1.699 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000268/0.5316, allocations: 83.88 kB / 0.5105 GB, free: 1.617 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.1465/0.6781, allocations: 3.157 MB / 0.5136 GB, free: 49.12 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.6782, allocations: 9.25 kB / 0.5136 GB, free: 49.12 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004558/0.6827, allocations: 0.7257 MB / 0.5143 GB, free: 48.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007524/0.6903, allocations: 3.27 MB / 0.5175 GB, free: 48.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.6904, allocations: 104.9 kB / 0.5176 GB, free: 48.61 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007691/0.6912, allocations: 187.5 kB / 0.5178 GB, free: 48.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005515/0.6967, allocations: 3.159 MB / 0.5209 GB, free: 48.59 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00549/0.7022, allocations: 3.647 MB / 0.5244 GB, free: 48.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.631e-05/0.7023, allocations: 10.53 kB / 0.5245 GB, free: 48.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002811/0.7026, allocations: 0 / 0.5245 GB, free: 48.23 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-05/0.7027, allocations: 147.2 kB / 0.5246 GB, free: 48.22 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/0.7202, allocations: 12.71 MB / 0.537 GB, free: 45.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001361/0.7216, allocations: 1.054 MB / 0.538 GB, free: 45.91 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001759/0.7234, allocations: 1.337 MB / 0.5393 GB, free: 45.89 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006084/0.7295, allocations: 3.987 MB / 0.5432 GB, free: 45.2 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.7295, allocations: 48.77 kB / 0.5433 GB, free: 45.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=148): time 3.526e-06/0.7295, allocations: 3.5 kB / 0.5433 GB, free: 45.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=151): time 0.0082/0.7377, allocations: 4.336 MB / 0.5475 GB, free: 44.04 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/0.7378, allocations: 67.16 kB / 0.5476 GB, free: 43.98 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002178/0.74, allocations: 1.213 MB / 0.5488 GB, free: 43.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.7401, allocations: 25.7 kB / 0.5488 GB, free: 43.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005801/0.7407, allocations: 1.152 MB / 0.5499 GB, free: 43.09 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003439/0.7411, allocations: 0.4965 MB / 0.5504 GB, free: 42.76 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.55e-05/0.7412, allocations: 0 / 0.5504 GB, free: 42.76 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.7413, allocations: 375.7 kB / 0.5508 GB, free: 42.45 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/0.7423, allocations: 0.7045 MB / 0.5514 GB, free: 42.45 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/0.7435, allocations: 1.174 MB / 0.5526 GB, free: 41.91 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00167/0.7452, allocations: 0.9728 MB / 0.5535 GB, free: 41.89 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/0.7452, allocations: 6.938 kB / 0.5536 GB, free: 41.89 MB / 394.7 MB Notification: Performance of matching and sorting (n=229) (initialization): time 0.004141/0.7493, allocations: 2.397 MB / 0.5559 GB, free: 41.61 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.7494, allocations: 3.938 kB / 0.5559 GB, free: 41.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.449e-05/0.7494, allocations: 18.94 kB / 0.5559 GB, free: 41.61 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007637/0.7502, allocations: 269.2 kB / 0.5562 GB, free: 41.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001608/0.7518, allocations: 409.2 kB / 0.5566 GB, free: 41.58 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004119/0.7559, allocations: 5.368 MB / 0.5618 GB, free: 37.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.7574, allocations: 50.16 kB / 0.5619 GB, free: 37.59 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/0.7576, allocations: 73.31 kB / 0.5619 GB, free: 37.58 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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): 205 * 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 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003291/0.758, allocations: 155.4 kB / 0.5621 GB, free: 37.46 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003604/0.7583, allocations: 170.6 kB / 0.5622 GB, free: 37.37 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004013/0.7624, allocations: 2.275 MB / 0.5645 GB, free: 36.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.7624, allocations: 13.84 kB / 0.5645 GB, free: 36.35 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.57e-05/0.7624, allocations: 6.938 kB / 0.5645 GB, free: 36.35 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.7624, allocations: 10.61 kB / 0.5645 GB, free: 36.34 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007895/0.7703, allocations: 5.006 MB / 0.5694 GB, free: 33.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.436e-06/0.7704, allocations: 3.312 kB / 0.5694 GB, free: 33.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.7714, allocations: 213.2 kB / 0.5696 GB, free: 33.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.7725, allocations: 451 kB / 0.57 GB, free: 33.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001139/0.7727, allocations: 19.84 kB / 0.57 GB, free: 33.73 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007434/0.7801, allocations: 9.476 MB / 0.5793 GB, free: 25.88 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.239e-06/0.7802, allocations: 3.812 kB / 0.5793 GB, free: 25.88 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004741/0.7849, allocations: 3.365 MB / 0.5826 GB, free: 24.15 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008882/0.7858, allocations: 417.8 kB / 0.583 GB, free: 23.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004321/0.7863, allocations: 11.7 kB / 0.583 GB, free: 23.85 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.7874, allocations: 51.47 kB / 0.583 GB, free: 23.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.7876, allocations: 88.53 kB / 0.5831 GB, free: 23.84 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-05/0.7877, allocations: 49.11 kB / 0.5832 GB, free: 23.83 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.001467/0.7892, allocations: 0.9034 MB / 0.584 GB, free: 23.43 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002478/0.7917, allocations: 0.5214 MB / 0.5846 GB, free: 23.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004892/0.7922, allocations: 322.1 kB / 0.5849 GB, free: 23.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003103/0.7953, allocations: 2.153 MB / 0.587 GB, free: 22.28 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.7953, allocations: 1.562 kB / 0.587 GB, free: 22.28 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002242/0.7975, allocations: 1.462 MB / 0.5884 GB, free: 21.43 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.7997, allocations: 337.6 kB / 0.5887 GB, free: 21.34 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.8107, allocations: 4.553 MB / 0.5932 GB, free: 19.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003403/0.8142, allocations: 2.454 MB / 0.5956 GB, free: 18.29 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8142, allocations: 3.562 kB / 0.5956 GB, free: 18.29 MB / 394.7 MB Notification: Performance of Templates: time 0.04739/0.8616, allocations: 26.19 MB / 0.6211 GB, free: 16.45 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)