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.001129/0.001133, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001315/0.001315, allocations: 195.1 kB / 16.53 MB, free: 6.664 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.337/1.337, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001165/0.001165, allocations: 47.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.196, allocations: 46.64 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02182/0.2179, allocations: 23.56 MB / 348.9 MB, free: 12.26 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01316/0.2311, allocations: 6.918 MB / 355.8 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00425/0.2354, allocations: 139.4 kB / 355.9 MB, free: 5.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004969/0.2404, allocations: 1.61 MB / 357.5 MB, free: 3.566 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008673/0.2491, allocations: 2.376 MB / 359.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004159/0.2533, allocations: 1.439 MB / 361.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01385/0.2672, allocations: 8.882 MB / 370.2 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01011/0.2773, allocations: 7 MB / 377.2 MB, free: 15.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00583/0.2832, allocations: 4.031 MB / 381.3 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00672/0.29, allocations: 4.721 MB / 386 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002747/0.2927, allocations: 1.109 MB / 387.1 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003999/0.2968, allocations: 1.378 MB / 388.5 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00329/0.3001, allocations: 2.719 MB / 391.2 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006785/0.3069, allocations: 4.68 MB / 395.9 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01412/0.321, allocations: 14.33 MB / 410.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3211, allocations: 7.938 kB / 410.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.3211, allocations: 4 kB / 410.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003389/0.3214, allocations: 0 / 410.2 MB, free: 14.64 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02277/0.3442, allocations: 8.908 MB / 419.1 MB, free: 5.641 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3443, allocations: 12.03 kB / 419.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005963/0.3502, allocations: 1.303 MB / 420.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01019/0.3604, allocations: 5.036 MB / 425.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004415/0.3609, allocations: 0.5058 MB / 426 MB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00167/0.3626, allocations: 0.6601 MB / 426.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01884/0.3815, allocations: 9.449 MB / 436.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001715/0.3817, allocations: 15.84 kB / 436.1 MB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001011/0.3827, allocations: 280 kB / 436.4 MB, free: 4.184 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002785/0.383, allocations: 297.4 kB / 436.7 MB, free: 3.891 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.398, allocations: 8.071 MB / 444.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3003/0.6983, allocations: 29.4 MB / 474.1 MB, free: 89.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008392/0.7067, allocations: 11.97 MB / 486.1 MB, free: 78.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00406/0.7108, allocations: 3.381 MB / 489.5 MB, free: 77.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01096/0.7218, allocations: 7.997 MB / 497.5 MB, free: 72.18 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.684e-05/0.7219, allocations: 68.09 kB / 497.6 MB, free: 72.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 5.65e-06/0.7219, allocations: 0 / 497.6 MB, free: 72.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.02604/0.7479, allocations: 15.83 MB / 0.5014 GB, free: 56.12 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.955e-05/0.748, allocations: 89.89 kB / 0.5015 GB, free: 56.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004661/0.7527, allocations: 4 MB / 0.5054 GB, free: 51.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003088/0.753, allocations: 85.7 kB / 0.5054 GB, free: 51.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001283/0.7543, allocations: 3.082 MB / 0.5084 GB, free: 48.8 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005991/0.7549, allocations: 1.096 MB / 0.5095 GB, free: 47.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000852/0.7558, allocations: 0.6767 MB / 0.5102 GB, free: 47.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.605e-05/0.7558, allocations: 301.1 kB / 0.5105 GB, free: 46.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002239/0.758, allocations: 1.862 MB / 0.5123 GB, free: 44.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002508/0.7606, allocations: 2.847 MB / 0.5151 GB, free: 41.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004928/0.7655, allocations: 4.9 MB / 0.5199 GB, free: 36.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.7655, allocations: 12 kB / 0.5199 GB, free: 36.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008271/0.7738, allocations: 6.398 MB / 0.5261 GB, free: 29.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.762e-05/0.7739, allocations: 20 kB / 0.5261 GB, free: 29.76 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/0.7739, allocations: 35.92 kB / 0.5262 GB, free: 29.73 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002368/0.7763, allocations: 1.277 MB / 0.5274 GB, free: 28.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002758/0.779, allocations: 0.819 MB / 0.5282 GB, free: 27.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/0.7934, allocations: 22.55 MB / 0.5502 GB, free: 3.508 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003373/0.7968, allocations: 195.7 kB / 0.5504 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003916/0.7972, allocations: 152 kB / 0.5506 GB, free: 3.168 MB / 382.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.00361/0.8008, allocations: 2.187 MB / 0.5527 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001119/0.8019, allocations: 450.5 kB / 0.5531 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01041/0.8123, allocations: 6.047 MB / 0.559 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.78e-05/0.8124, allocations: 32 kB / 0.5591 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.899e-05/0.8124, allocations: 16 kB / 0.5591 GB, free: 10.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-05/0.8125, allocations: 19.92 kB / 0.5591 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02087/0.8334, allocations: 12.37 MB / 0.5712 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/0.8334, allocations: 4 kB / 0.5712 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/0.8354, allocations: 451.8 kB / 0.5716 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/0.8392, allocations: 1.634 MB / 0.5732 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002419/0.8395, allocations: 75.97 kB / 0.5733 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02992/0.8694, allocations: 32.9 MB / 0.6054 GB, free: 8.336 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.8695, allocations: 4 kB / 0.6054 GB, free: 8.332 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1771/1.047, allocations: 8.637 MB / 0.6138 GB, free: 149.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003867/1.051, allocations: 0.9149 MB / 0.6147 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/1.052, allocations: 66.88 kB / 0.6148 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002093/1.054, allocations: 177.6 kB / 0.615 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008151/1.055, allocations: 276.5 kB / 0.6152 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002303/1.055, allocations: 90.22 kB / 0.6153 GB, free: 149 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004609/1.06, allocations: 2.72 MB / 0.618 GB, free: 148.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.06, allocations: 0 / 0.618 GB, free: 148.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00505/1.065, allocations: 1.331 MB / 0.6193 GB, free: 148.8 MB / 446.1 MB 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.000659/1.065, allocations: 278.3 kB / 0.6195 GB, free: 148.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01543/1.081, allocations: 9.426 MB / 0.6287 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/1.081, allocations: 1.875 kB / 0.6287 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006153/1.087, allocations: 4.782 MB / 0.6334 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006675/1.094, allocations: 1.325 MB / 0.6347 GB, free: 143.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02053/1.114, allocations: 13.41 MB / 0.6478 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004506/1.119, allocations: 4.483 MB / 0.6522 GB, free: 129.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00381/1.123, allocations: 1.053 MB / 0.6532 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006601/1.123, allocations: 278.7 kB / 0.6535 GB, free: 128.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.014e-06/1.123, allocations: 0 / 0.6535 GB, free: 128.6 MB / 446.1 MB Notification: Performance of Templates: time 0.1006/1.224, allocations: 73.86 MB / 0.7256 GB, free: 54.68 MB / 446.1 MB 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)