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.0007931/0.0007934, allocations: 92.91 kB / 16.65 MB, free: 6.59 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.0008124/0.0008126, allocations: 184.1 kB / 17.56 MB, free: 6.203 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.342/1.342, allocations: 205.4 MB / 223.7 MB, free: 13.08 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.0004657/0.0004658, allocations: 16 kB / 280.7 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08047, allocations: 47.58 MB / 328.3 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.01216/0.09267, allocations: 12.04 MB / 340.4 MB, free: 7.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008227/0.1009, allocations: 4.195 MB / 344.6 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001537/0.1025, allocations: 67.75 kB / 344.6 MB, free: 3.383 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002172/0.1047, allocations: 0.8472 MB / 345.5 MB, free: 2.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003333/0.108, allocations: 1.162 MB / 346.6 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001845/0.1099, allocations: 0.772 MB / 347.4 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00522/0.1151, allocations: 4.351 MB / 351.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003673/0.1188, allocations: 2.622 MB / 354.4 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002019/0.1209, allocations: 1.307 MB / 355.7 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002395/0.1233, allocations: 1.711 MB / 357.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003735/0.1237, allocations: 208 kB / 357.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001018/0.1247, allocations: 419.7 kB / 358 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006984/0.1254, allocations: 0.7821 MB / 358.8 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001766/0.1272, allocations: 1.758 MB / 360.6 MB, free: 3.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00544/0.1326, allocations: 6.318 MB / 366.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1327, allocations: 0 / 366.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1327, allocations: 0 / 366.9 MB, free: 12.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001064/0.1328, allocations: 0 / 366.9 MB, free: 12.99 MB / 318.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.008964/0.1418, allocations: 3.716 MB / 370.6 MB, free: 9.199 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1418, allocations: 12.03 kB / 370.6 MB, free: 9.188 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004501/0.1463, allocations: 0.8125 MB / 371.4 MB, free: 8.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00406/0.1504, allocations: 2.26 MB / 373.7 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.1506, allocations: 238.6 kB / 373.9 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005575/0.1512, allocations: 316 kB / 374.2 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007896/0.1591, allocations: 4.266 MB / 378.5 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.025e-05/0.1592, allocations: 7.938 kB / 378.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002941/0.1595, allocations: 128 kB / 378.6 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/0.1596, allocations: 142.2 kB / 378.8 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.155/0.3146, allocations: 3.665 MB / 382.4 MB, free: 47.99 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01938/0.334, allocations: 13.57 MB / 396 MB, free: 39.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005332/0.3394, allocations: 6.872 MB / 402.9 MB, free: 33.37 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00217/0.3416, allocations: 1.43 MB / 404.3 MB, free: 32.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005277/0.3469, allocations: 3.66 MB / 407.9 MB, free: 30.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.3469, allocations: 47.47 kB / 408 MB, free: 29.99 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 2.725e-06/0.347, allocations: 0 / 408 MB, free: 29.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.01156/0.3585, allocations: 6.685 MB / 414.7 MB, free: 24.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.957e-05/0.3586, allocations: 68.66 kB / 414.7 MB, free: 24.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002201/0.3608, allocations: 1.859 MB / 416.6 MB, free: 22.89 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.3609, allocations: 53.7 kB / 416.7 MB, free: 22.84 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006287/0.3615, allocations: 1.42 MB / 418.1 MB, free: 21.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002641/0.3618, allocations: 0.4925 MB / 418.6 MB, free: 20.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.362, allocations: 137.6 kB / 418.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.469e-05/0.362, allocations: 301.1 kB / 419 MB, free: 20.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009994/0.363, allocations: 0.773 MB / 419.8 MB, free: 19.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.3642, allocations: 1.228 MB / 421 MB, free: 18.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002293/0.3665, allocations: 2.128 MB / 423.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.3665, allocations: 4 kB / 423.1 MB, free: 15.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.003767/0.3703, allocations: 2.67 MB / 425.8 MB, free: 13.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3703, allocations: 12 kB / 425.8 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.3704, allocations: 19.98 kB / 425.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00119/0.3716, allocations: 0.5017 MB / 426.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001327/0.3729, allocations: 391.4 kB / 426.7 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006215/0.3791, allocations: 6.404 MB / 433.1 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.3806, allocations: 79.95 kB / 433.2 MB, free: 5.609 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.3807, allocations: 75.98 kB / 433.3 MB, free: 5.535 MB / 318.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.001545/0.3822, allocations: 1.04 MB / 434.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002631/0.3825, allocations: 197.6 kB / 434.5 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003523/0.386, allocations: 2.526 MB / 437 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3861, allocations: 12 kB / 437 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.3861, allocations: 9.75 kB / 437.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.3861, allocations: 7.969 kB / 437.1 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007794/0.3939, allocations: 5.551 MB / 442.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.623e-06/0.3939, allocations: 0 / 442.6 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000989/0.3949, allocations: 219.9 kB / 442.8 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001237/0.3962, allocations: 0.5009 MB / 443.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-05/0.3963, allocations: 39.27 kB / 443.4 MB, free: 11.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009934/0.4062, allocations: 10.45 MB / 453.8 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.4063, allocations: 7.922 kB / 453.8 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005659/0.4119, allocations: 3.596 MB / 457.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.413, allocations: 462.6 kB / 457.9 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002637/0.4133, allocations: 31.61 kB / 457.9 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009508/0.4143, allocations: 71.95 kB / 458 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002941/0.4146, allocations: 117 kB / 458.1 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.522e-05/0.4147, allocations: 39.98 kB / 458.1 MB, free: 11.76 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001938/0.4166, allocations: 1.286 MB / 459.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4166, allocations: 0 / 459.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002077/0.4187, allocations: 0.5859 MB / 460 MB, free: 9.895 MB / 350.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.0003361/0.4191, allocations: 167.8 kB / 460.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004148/0.4232, allocations: 2.41 MB / 462.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4232, allocations: 0 / 462.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002504/0.4257, allocations: 1.729 MB / 464.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002791/0.4286, allocations: 498.6 kB / 464.8 MB, free: 5.008 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01072/0.4393, allocations: 7.465 MB / 472.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002217/0.4415, allocations: 2.366 MB / 474.6 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001578/0.4431, allocations: 412.8 kB / 475 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/0.4435, allocations: 131.4 kB / 475.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.032e-06/0.4435, allocations: 0 / 475.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of Templates: time 0.05136/0.4949, allocations: 29.37 MB / 0.4927 GB, free: 13.18 MB / 398.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)