Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006465/0.006465, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001278/0.001279, allocations: 196.3 kB / 16.67 MB, free: 5.926 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.397/1.397, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001242/0.001242, allocations: 46.88 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08564/0.08689, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02631/0.1132, allocations: 23.57 MB / 396.8 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01786/0.1311, allocations: 6.906 MB / 403.7 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00542/0.1367, allocations: 135.4 kB / 403.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005545/0.1422, allocations: 1.688 MB / 405.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008758/0.151, allocations: 2.463 MB / 407.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004166/0.1552, allocations: 1.439 MB / 409.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.1664, allocations: 8.936 MB / 418.3 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009249/0.1757, allocations: 6.999 MB / 425.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005908/0.1816, allocations: 4.066 MB / 429.4 MB, free: 8.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007531/0.1892, allocations: 4.721 MB / 434.1 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003564/0.1928, allocations: 1.102 MB / 435.2 MB, free: 2.973 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004974/0.1978, allocations: 1.378 MB / 436.6 MB, free: 1.594 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004565/0.2024, allocations: 2.735 MB / 439.3 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009219/0.2116, allocations: 4.676 MB / 444 MB, free: 10.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2031/0.4147, allocations: 14.45 MB / 458.4 MB, free: 29.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.724e-06/0.4148, allocations: 0 / 458.4 MB, free: 29.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.4148, allocations: 0 / 458.4 MB, free: 29.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003905/0.4152, allocations: 0 / 458.4 MB, free: 29.16 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02645/0.4416, allocations: 8.894 MB / 467.3 MB, free: 26.27 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.4417, allocations: 12 kB / 467.4 MB, free: 26.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00742/0.4491, allocations: 1.303 MB / 468.7 MB, free: 25.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01224/0.4614, allocations: 5.087 MB / 473.7 MB, free: 24.88 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007412/0.4622, allocations: 0.499 MB / 474.2 MB, free: 24.86 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004509/0.4667, allocations: 0.6631 MB / 474.9 MB, free: 24.85 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02324/0.49, allocations: 9.455 MB / 484.4 MB, free: 21.72 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002437/0.4903, allocations: 7.219 kB / 484.4 MB, free: 21.72 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001758/0.492, allocations: 280.9 kB / 484.6 MB, free: 21.51 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002141/0.4922, allocations: 299.1 kB / 484.9 MB, free: 21.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01674/0.509, allocations: 8.076 MB / 493 MB, free: 17.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04778/0.5568, allocations: 29.02 MB / 0.5098 GB, free: 5.055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/0.568, allocations: 11.98 MB / 0.5215 GB, free: 7.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005379/0.5734, allocations: 3.366 MB / 0.5248 GB, free: 4.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01445/0.5879, allocations: 7.97 MB / 0.5326 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.177e-05/0.588, allocations: 68.97 kB / 0.5326 GB, free: 12.53 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 6.221e-06/0.588, allocations: 0 / 0.5326 GB, free: 12.53 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.0343/0.6223, allocations: 15.85 MB / 0.5481 GB, free: 12.23 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.6224, allocations: 89.7 kB / 0.5482 GB, free: 12.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006736/0.6291, allocations: 3.996 MB / 0.5521 GB, free: 8.117 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003756/0.6295, allocations: 81.7 kB / 0.5522 GB, free: 8.031 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00216/0.6317, allocations: 3.092 MB / 0.5552 GB, free: 4.926 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/0.6327, allocations: 1.094 MB / 0.5563 GB, free: 3.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.6341, allocations: 0.6748 MB / 0.5569 GB, free: 3.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.492e-05/0.6342, allocations: 305.1 kB / 0.5572 GB, free: 2.859 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/0.6372, allocations: 1.87 MB / 0.559 GB, free: 0.9883 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003521/0.6407, allocations: 2.83 MB / 0.5618 GB, free: 13.77 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006684/0.6474, allocations: 4.911 MB / 0.5666 GB, free: 8.562 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-05/0.6475, allocations: 12 kB / 0.5666 GB, free: 8.551 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01153/0.659, allocations: 6.399 MB / 0.5729 GB, free: 2.234 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.6591, allocations: 20 kB / 0.5729 GB, free: 2.215 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.317e-05/0.6592, allocations: 28.06 kB / 0.5729 GB, free: 2.188 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003063/0.6622, allocations: 1.264 MB / 0.5741 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003323/0.6656, allocations: 0.8209 MB / 0.5749 GB, free: 116 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0211/0.6867, allocations: 22.53 MB / 0.5969 GB, free: 8.164 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004076/0.6908, allocations: 195.7 kB / 0.5971 GB, free: 7.973 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008128/0.6917, allocations: 156.1 kB / 0.5973 GB, free: 7.82 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 11 systems {(1,8,100.0%), (2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005357/0.697, allocations: 2.183 MB / 0.5994 GB, free: 5.676 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/0.6984, allocations: 446.6 kB / 0.5998 GB, free: 5.234 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01144/0.7099, allocations: 6.057 MB / 0.6057 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/0.71, allocations: 32 kB / 0.6058 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-05/0.71, allocations: 12 kB / 0.6058 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.092e-05/0.7101, allocations: 19.94 kB / 0.6058 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/0.7343, allocations: 12.35 MB / 0.6179 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-05/0.7343, allocations: 8.031 kB / 0.6179 GB, free: 2.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002171/0.7365, allocations: 449.5 kB / 0.6183 GB, free: 2.078 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004154/0.7407, allocations: 1.618 MB / 0.6199 GB, free: 428 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004263/0.7412, allocations: 75.97 kB / 0.62 GB, free: 352 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2513/0.9925, allocations: 32.87 MB / 0.6521 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.9926, allocations: 4.312 kB / 0.6521 GB, free: 176.3 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01463/1.007, allocations: 8.643 MB / 0.6605 GB, free: 172.6 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002522/1.01, allocations: 0.9162 MB / 0.6614 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001363/1.011, allocations: 67.27 kB / 0.6615 GB, free: 172.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003031/1.014, allocations: 184.1 kB / 0.6616 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008597/1.015, allocations: 268.3 kB / 0.6619 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003475/1.015, allocations: 97.5 kB / 0.662 GB, free: 172.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.004825/1.02, allocations: 2.72 MB / 0.6646 GB, free: 171.1 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.2e-07/1.02, allocations: 0 / 0.6646 GB, free: 171.1 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005684/1.026, allocations: 1.331 MB / 0.6659 GB, free: 170.9 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * 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): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%), (1,8,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.0008245/1.027, allocations: 277.9 kB / 0.6662 GB, free: 170.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008566/1.035, allocations: 6.334 MB / 0.6724 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.255e-06/1.035, allocations: 2.031 kB / 0.6724 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005648/1.041, allocations: 4.78 MB / 0.6771 GB, free: 164.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006415/1.048, allocations: 1.346 MB / 0.6784 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.07, allocations: 13.24 MB / 0.6913 GB, free: 153.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003475/1.074, allocations: 4.487 MB / 0.6957 GB, free: 148.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002867/1.076, allocations: 1.054 MB / 0.6967 GB, free: 147.6 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000676/1.077, allocations: 271.4 kB / 0.697 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of SimCode: time 8.72e-07/1.077, allocations: 4 kB / 0.697 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.09934/1.176, allocations: 71.38 MB / 0.7667 GB, free: 75.91 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)