Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005903/0.005903, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.0012/0.0012, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 12.21 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.001333/0.001333, allocations: 59.92 kB / 326.6 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.1005, allocations: 46.61 MB / 373.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2265/0.327, allocations: 16.75 MB / 389.9 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.3403, allocations: 5.72 MB / 395.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005398/0.3458, allocations: 96.84 kB / 395.7 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004915/0.3507, allocations: 1.378 MB / 397.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007726/0.3585, allocations: 1.83 MB / 399 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003423/0.3619, allocations: 1.057 MB / 400 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01025/0.3722, allocations: 6.326 MB / 406.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01045/0.3827, allocations: 5.284 MB / 411.6 MB, free: 7.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007653/0.3904, allocations: 2.953 MB / 414.6 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009136/0.3995, allocations: 3.341 MB / 417.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004129/0.4037, allocations: 0.7852 MB / 418.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006228/0.4099, allocations: 1.062 MB / 419.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004302/0.4143, allocations: 1.858 MB / 421.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008723/0.423, allocations: 3.349 MB / 425 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01618/0.4392, allocations: 10.52 MB / 435.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.046e-06/0.4393, allocations: 4 kB / 435.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4393, allocations: 0 / 435.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003858/0.4397, allocations: 0 / 435.5 MB, free: 1.176 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.02209/0.4618, allocations: 6.511 MB / 442 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/0.4619, allocations: 15.89 kB / 442 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006192/0.4681, allocations: 1.052 MB / 443.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008414/0.4765, allocations: 3.416 MB / 446.5 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004209/0.4769, allocations: 369.7 kB / 446.8 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002011/0.479, allocations: 483.9 kB / 447.3 MB, free: 5.18 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01622/0.4952, allocations: 6.869 MB / 454.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001036/0.4954, allocations: 11.94 kB / 454.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004874/0.4958, allocations: 196 kB / 454.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002248/0.4961, allocations: 241.8 kB / 454.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/0.5075, allocations: 5.922 MB / 460.6 MB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03752/0.5451, allocations: 20.67 MB / 481.2 MB, free: 2.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009398/0.5545, allocations: 9.963 MB / 491.2 MB, free: 7.754 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004158/0.5587, allocations: 2.481 MB / 493.7 MB, free: 5.266 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01206/0.5708, allocations: 6.478 MB / 0.4884 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.07e-05/0.5709, allocations: 60.56 kB / 0.4885 GB, free: 14.61 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 3.717e-06/0.5709, allocations: 0 / 0.4885 GB, free: 14.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.01902/0.5899, allocations: 9.683 MB / 0.4979 GB, free: 4.707 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.59, allocations: 77.41 kB / 0.498 GB, free: 4.617 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00549/0.5955, allocations: 2.988 MB / 0.5009 GB, free: 1.613 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003378/0.5958, allocations: 65.7 kB / 0.501 GB, free: 1.543 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001538/0.5974, allocations: 2.156 MB / 0.5031 GB, free: 15.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000811/0.5982, allocations: 0.7624 MB / 0.5038 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009031/0.5991, allocations: 469 kB / 0.5043 GB, free: 14.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.5992, allocations: 301.1 kB / 0.5046 GB, free: 13.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002114/0.6013, allocations: 1.297 MB / 0.5058 GB, free: 12.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002495/0.6038, allocations: 1.916 MB / 0.5077 GB, free: 10.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004806/0.6087, allocations: 3.348 MB / 0.511 GB, free: 6.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.151e-05/0.6087, allocations: 11.94 kB / 0.511 GB, free: 6.738 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007614/0.6163, allocations: 4.241 MB / 0.5151 GB, free: 2.453 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.6164, allocations: 12 kB / 0.5151 GB, free: 2.441 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.505e-05/0.6164, allocations: 16 kB / 0.5152 GB, free: 2.426 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002423/0.6189, allocations: 0.7238 MB / 0.5159 GB, free: 1.688 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.6214, allocations: 0.5656 MB / 0.5164 GB, free: 1.121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0115/0.6329, allocations: 10.88 MB / 0.527 GB, free: 5.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/0.6358, allocations: 104 kB / 0.5271 GB, free: 5.578 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004586/0.6362, allocations: 104 kB / 0.5272 GB, free: 5.477 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003472/0.6397, allocations: 1.61 MB / 0.5288 GB, free: 3.855 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/0.6408, allocations: 320.1 kB / 0.5291 GB, free: 3.539 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007621/0.6484, allocations: 3.906 MB / 0.5329 GB, free: 15.56 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.805e-05/0.6484, allocations: 28 kB / 0.533 GB, free: 15.54 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.461e-05/0.6485, allocations: 12 kB / 0.533 GB, free: 15.52 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.422e-05/0.6485, allocations: 11.95 kB / 0.533 GB, free: 15.51 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/0.6647, allocations: 8.559 MB / 0.5413 GB, free: 6.801 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.6648, allocations: 4 kB / 0.5413 GB, free: 6.797 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/0.6664, allocations: 347.8 kB / 0.5417 GB, free: 6.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002729/0.6692, allocations: 0.8756 MB / 0.5425 GB, free: 5.562 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002186/0.6694, allocations: 55.97 kB / 0.5426 GB, free: 5.508 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2475/0.9169, allocations: 15.68 MB / 0.5579 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.917, allocations: 2.859 kB / 0.5579 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/0.9278, allocations: 5.703 MB / 0.5635 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002067/0.9299, allocations: 0.6834 MB / 0.5641 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000525/0.9305, allocations: 58.5 kB / 0.5642 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.932, allocations: 107.5 kB / 0.5643 GB, free: 137.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005933/0.9326, allocations: 189.1 kB / 0.5645 GB, free: 137.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/0.9328, allocations: 63.98 kB / 0.5645 GB, free: 137.8 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003784/0.9365, allocations: 2.062 MB / 0.5666 GB, free: 137 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9366, allocations: 7.875 kB / 0.5666 GB, free: 137 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004324/0.9409, allocations: 0.9353 MB / 0.5675 GB, free: 136.9 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,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.0008042/0.9417, allocations: 260.9 kB / 0.5677 GB, free: 136.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006621/0.9483, allocations: 3.905 MB / 0.5715 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.155e-06/0.9484, allocations: 1.156 kB / 0.5715 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004187/0.9526, allocations: 2.627 MB / 0.5741 GB, free: 133.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004612/0.9572, allocations: 0.9213 MB / 0.575 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0158/0.973, allocations: 9.398 MB / 0.5842 GB, free: 128.9 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002913/0.976, allocations: 3.425 MB / 0.5875 GB, free: 127.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002476/0.9785, allocations: 0.7572 MB / 0.5883 GB, free: 127.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005964/0.9791, allocations: 198.5 kB / 0.5885 GB, free: 127.5 MB / 478.1 MB Notification: Performance of SimCode: time 5.21e-07/0.9791, allocations: 4 kB / 0.5885 GB, free: 127.5 MB / 478.1 MB Notification: Performance of Templates: time 0.07171/1.051, allocations: 48.89 MB / 0.6362 GB, free: 80.56 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)