Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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.1_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.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 198.6 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.36/1.36, allocations: 205.1 MB / 222 MB, free: 4.758 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 47.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2504, allocations: 46.63 MB / 324.7 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01454/0.265, allocations: 12.62 MB / 337.3 MB, free: 7.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008914/0.274, allocations: 4.227 MB / 341.5 MB, free: 3.262 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002879/0.277, allocations: 59.75 kB / 341.6 MB, free: 3.203 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00268/0.2797, allocations: 0.8473 MB / 342.4 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003364/0.283, allocations: 1.162 MB / 343.6 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001725/0.2848, allocations: 0.7919 MB / 344.4 MB, free: 400 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004911/0.2897, allocations: 4.149 MB / 348.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002957/0.2927, allocations: 2.638 MB / 351.2 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.2948, allocations: 1.455 MB / 352.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002126/0.2969, allocations: 1.887 MB / 354.5 MB, free: 6.16 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004432/0.2974, allocations: 296 kB / 354.8 MB, free: 5.871 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001196/0.2986, allocations: 0.4919 MB / 355.3 MB, free: 5.379 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007542/0.2994, allocations: 0.8837 MB / 356.2 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001941/0.3013, allocations: 1.831 MB / 358 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005269/0.3066, allocations: 6.372 MB / 364.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.3066, allocations: 3.938 kB / 364.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3066, allocations: 0 / 364.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.785e-05/0.3067, allocations: 0 / 364.4 MB, free: 12.26 MB / 302.1 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.01067/0.3174, allocations: 4.289 MB / 368.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.3175, allocations: 8.031 kB / 368.7 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004097/0.3216, allocations: 0.8202 MB / 369.5 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003525/0.3251, allocations: 2.177 MB / 371.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.3253, allocations: 230.6 kB / 371.9 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004772/0.3258, allocations: 319.8 kB / 372.2 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007368/0.3331, allocations: 4.219 MB / 376.4 MB, free: 24 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.256e-05/0.3332, allocations: 3.938 kB / 376.4 MB, free: 20 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003044/0.3335, allocations: 128.1 kB / 376.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.3337, allocations: 150.3 kB / 376.7 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006137/0.3398, allocations: 3.597 MB / 380.3 MB, free: 12.13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01947/0.3593, allocations: 13.2 MB / 393.5 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006596/0.366, allocations: 6.892 MB / 400.4 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00251/0.3685, allocations: 1.375 MB / 401.8 MB, free: 5.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006395/0.3749, allocations: 3.711 MB / 405.5 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.375, allocations: 51.55 kB / 405.5 MB, free: 1.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=119): time 3.837e-06/0.375, allocations: 3.984 kB / 405.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.01107/0.3861, allocations: 5.353 MB / 410.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.3862, allocations: 64.41 kB / 411 MB, free: 11.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002543/0.3887, allocations: 1.709 MB / 412.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.3888, allocations: 45.7 kB / 412.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009946/0.3898, allocations: 1.399 MB / 414.1 MB, free: 8.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003633/0.3902, allocations: 429.8 kB / 414.5 MB, free: 8.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004455/0.3906, allocations: 291.3 kB / 414.8 MB, free: 8.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3908, allocations: 309.1 kB / 415.1 MB, free: 7.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00107/0.3918, allocations: 0.6403 MB / 415.8 MB, free: 7.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.3932, allocations: 1.126 MB / 416.9 MB, free: 5.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002671/0.3959, allocations: 1.864 MB / 418.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.116e-06/0.3959, allocations: 4 kB / 418.8 MB, free: 3.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003919/0.3998, allocations: 2.319 MB / 421.1 MB, free: 1.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.3999, allocations: 12.28 kB / 421.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.3999, allocations: 16 kB / 421.1 MB, free: 1.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007068/0.4006, allocations: 271.2 kB / 421.4 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/0.4019, allocations: 359.4 kB / 421.7 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005672/0.4076, allocations: 5.683 MB / 427.4 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.4091, allocations: 88.02 kB / 427.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.4093, allocations: 71.92 kB / 427.6 MB, free: 10.44 MB / 366.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002168/0.4115, allocations: 0.9931 MB / 428.5 MB, free: 9.438 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005238/0.412, allocations: 173.8 kB / 428.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003933/0.4159, allocations: 2.123 MB / 430.8 MB, free: 7.082 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.416, allocations: 12 kB / 430.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.561e-05/0.416, allocations: 7.984 kB / 430.9 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.416, allocations: 11.97 kB / 430.9 MB, free: 7.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008047/0.424, allocations: 4.815 MB / 435.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.101e-06/0.4241, allocations: 0 / 435.7 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007347/0.4248, allocations: 167.8 kB / 435.9 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.426, allocations: 452.1 kB / 436.3 MB, free: 1.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.312e-05/0.4261, allocations: 39.92 kB / 436.3 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01021/0.4364, allocations: 10.09 MB / 446.4 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.4364, allocations: 0 / 446.4 MB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00532/0.4417, allocations: 2.996 MB / 449.4 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/0.4431, allocations: 410.7 kB / 449.8 MB, free: 3.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007016/0.4438, allocations: 28 kB / 449.8 MB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.4452, allocations: 71.88 kB / 449.9 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003321/0.4455, allocations: 96.8 kB / 450 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.873e-05/0.4456, allocations: 36 kB / 450 MB, free: 2.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.4482, allocations: 1.174 MB / 451.2 MB, free: 1.773 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4483, allocations: 0 / 451.2 MB, free: 1.773 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003095/0.4514, allocations: 0.539 MB / 451.8 MB, free: 1.234 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,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.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003949/0.4518, allocations: 163 kB / 451.9 MB, free: 1.062 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.1921/0.6439, allocations: 2.067 MB / 454 MB, free: 111 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.6439, allocations: 1.219 kB / 454 MB, free: 111 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002699/0.6466, allocations: 1.523 MB / 455.5 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/0.6495, allocations: 484.5 kB / 456 MB, free: 110.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01053/0.66, allocations: 6.835 MB / 462.8 MB, free: 106.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/0.6618, allocations: 2.284 MB / 465.1 MB, free: 105.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001434/0.6632, allocations: 385 kB / 465.5 MB, free: 105.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002943/0.6635, allocations: 122.2 kB / 465.6 MB, free: 105.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6635, allocations: 0 / 465.6 MB, free: 105.6 MB / 382.1 MB Notification: Performance of Templates: time 0.04053/0.7041, allocations: 26.44 MB / 492 MB, free: 82.38 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1)