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/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_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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 107.2 kB / 17.06 MB, free: 5.98 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.001101/0.001101, allocations: 198.8 kB / 18 MB, free: 5.059 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.393/1.393, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.001159/0.001159, allocations: 43.94 kB / 327.9 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08276/0.08393, allocations: 46.62 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.1984/0.2824, allocations: 12.82 MB / 387.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007701/0.2901, allocations: 4.295 MB / 391.6 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.2928, allocations: 68.31 kB / 391.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003203/0.296, allocations: 0.9639 MB / 392.6 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004517/0.3005, allocations: 1.287 MB / 393.9 MB, free: 2.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002006/0.3025, allocations: 0.8563 MB / 394.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005018/0.3076, allocations: 4.039 MB / 398.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00399/0.3116, allocations: 3.19 MB / 402 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00323/0.3148, allocations: 1.877 MB / 403.9 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003825/0.3187, allocations: 2.113 MB / 406 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001052/0.3198, allocations: 0.5092 MB / 406.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001989/0.3218, allocations: 0.7099 MB / 407.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.323, allocations: 1.146 MB / 408.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005103/0.3282, allocations: 2.123 MB / 410.5 MB, free: 9.816 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008411/0.3366, allocations: 6.743 MB / 417.2 MB, free: 4.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3366, allocations: 3.938 kB / 417.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3366, allocations: 0 / 417.2 MB, free: 4.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001669/0.3368, allocations: 0 / 417.2 MB, free: 4.727 MB / 334.1 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.01171/0.3485, allocations: 4.391 MB / 421.6 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3486, allocations: 11.89 kB / 421.6 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004225/0.3528, allocations: 0.8163 MB / 422.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004514/0.3573, allocations: 2.323 MB / 424.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001781/0.3575, allocations: 234.6 kB / 425 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006227/0.3582, allocations: 312.3 kB / 425.3 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007616/0.3658, allocations: 4.265 MB / 429.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.009e-05/0.3659, allocations: 3.906 kB / 429.6 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003125/0.3662, allocations: 128 kB / 429.7 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.3664, allocations: 146.2 kB / 429.8 MB, free: 8.211 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006315/0.3727, allocations: 3.651 MB / 433.5 MB, free: 4.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/0.3942, allocations: 13.33 MB / 446.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006614/0.4008, allocations: 6.858 MB / 453.7 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002284/0.4031, allocations: 1.421 MB / 455.1 MB, free: 13.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00627/0.4094, allocations: 3.62 MB / 458.7 MB, free: 9.965 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.701e-05/0.4095, allocations: 55.48 kB / 458.8 MB, free: 9.902 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 2.795e-06/0.4095, allocations: 0 / 458.8 MB, free: 9.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01298/0.4225, allocations: 6.637 MB / 465.4 MB, free: 3.07 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.4225, allocations: 64.72 kB / 465.5 MB, free: 2.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002597/0.4252, allocations: 1.863 MB / 467.4 MB, free: 1.129 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.4253, allocations: 49.7 kB / 467.4 MB, free: 1.074 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009344/0.4262, allocations: 1.42 MB / 468.8 MB, free: 15.63 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003675/0.4266, allocations: 496.8 kB / 469.3 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/0.4271, allocations: 303.3 kB / 469.6 MB, free: 14.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.48e-05/0.4272, allocations: 305.1 kB / 469.9 MB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.4283, allocations: 0.7691 MB / 470.7 MB, free: 13.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.4298, allocations: 1.216 MB / 471.9 MB, free: 12.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.4325, allocations: 2.111 MB / 474 MB, free: 10.06 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.4325, allocations: 8 kB / 474 MB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.004305/0.4368, allocations: 2.652 MB / 476.7 MB, free: 7.383 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.784e-05/0.4369, allocations: 15.94 kB / 476.7 MB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.4369, allocations: 15.94 kB / 476.7 MB, free: 7.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.4382, allocations: 0.4935 MB / 477.2 MB, free: 6.852 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001446/0.4397, allocations: 391.4 kB / 477.6 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008235/0.4479, allocations: 6.924 MB / 484.5 MB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4496, allocations: 71.97 kB / 484.6 MB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001447/0.4498, allocations: 75.92 kB / 484.6 MB, free: 15.11 MB / 414.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001759/0.4516, allocations: 1.036 MB / 485.7 MB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003338/0.4519, allocations: 201.6 kB / 485.9 MB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004109/0.456, allocations: 2.5 MB / 488.4 MB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.218e-05/0.4561, allocations: 16 kB / 488.4 MB, free: 11.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4561, allocations: 11.94 kB / 488.4 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.4561, allocations: 7.969 kB / 488.4 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008589/0.4647, allocations: 5.529 MB / 493.9 MB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.675e-06/0.4647, allocations: 8.188 kB / 493.9 MB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009904/0.4657, allocations: 219.7 kB / 494.1 MB, free: 5.375 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001443/0.4672, allocations: 0.4921 MB / 494.6 MB, free: 4.867 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001478/0.4673, allocations: 35.98 kB / 494.7 MB, free: 4.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01084/0.4782, allocations: 11.41 MB / 0.4942 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.4782, allocations: 4.031 kB / 0.4942 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005508/0.4837, allocations: 3.566 MB / 0.4977 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4848, allocations: 458.6 kB / 0.4981 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/0.485, allocations: 32 kB / 0.4982 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009117/0.4859, allocations: 67.94 kB / 0.4982 GB, free: 4.504 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/0.4862, allocations: 113 kB / 0.4984 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.582e-05/0.4863, allocations: 39.98 kB / 0.4984 GB, free: 4.355 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001888/0.4882, allocations: 1.286 MB / 0.4996 GB, free: 3.078 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4882, allocations: 384 / 0.4996 GB, free: 3.078 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002042/0.4902, allocations: 0.5939 MB / 0.5002 GB, free: 2.484 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,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 (102): * Single equations (assignments): 97 * 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 {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000313/0.4906, allocations: 151 kB / 0.5004 GB, free: 2.328 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004092/0.4947, allocations: 2.415 MB / 0.5027 GB, free: 15.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4947, allocations: 0 / 0.5027 GB, free: 15.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002374/0.4971, allocations: 1.727 MB / 0.5044 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/0.4993, allocations: 0.5026 MB / 0.5049 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01031/0.5096, allocations: 5.931 MB / 0.5107 GB, free: 7.613 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001945/0.5116, allocations: 2.374 MB / 0.513 GB, free: 5.207 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00132/0.5129, allocations: 412.8 kB / 0.5134 GB, free: 4.801 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003545/0.5133, allocations: 131.4 kB / 0.5135 GB, free: 4.672 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/0.5133, allocations: 4 kB / 0.5135 GB, free: 4.668 MB / 446.1 MB Notification: Performance of Templates: time 0.05254/0.5658, allocations: 31.52 MB / 0.5443 GB, free: 5.09 MB / 478.1 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)