Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0007896/0.0007896, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.004547/0.004547, allocations: 169.7 kB / 16.27 MB, free: 6.652 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.341/1.341, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004643/0.0004644, allocations: 8 kB / 279.5 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.22, allocations: 47.59 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.0211/0.2411, allocations: 22.33 MB / 349.4 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0143/0.2555, allocations: 6.774 MB / 356.1 MB, free: 6.172 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004451/0.26, allocations: 135.3 kB / 356.3 MB, free: 6.039 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004894/0.2649, allocations: 1.379 MB / 357.7 MB, free: 4.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008322/0.2732, allocations: 2.172 MB / 359.8 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004168/0.2774, allocations: 1.303 MB / 361.1 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01323/0.2907, allocations: 9.915 MB / 371 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009279/0.3, allocations: 5.728 MB / 376.8 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004998/0.305, allocations: 2.902 MB / 379.7 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006232/0.3113, allocations: 3.921 MB / 383.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001998/0.3133, allocations: 464 kB / 384.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003239/0.3166, allocations: 0.7574 MB / 384.8 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002946/0.3195, allocations: 1.946 MB / 386.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006587/0.3261, allocations: 3.849 MB / 390.6 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01869/0.3449, allocations: 13.49 MB / 404.1 MB, free: 5.957 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.3449, allocations: 3.984 kB / 404.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3449, allocations: 0 / 404.1 MB, free: 5.953 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004966/0.3454, allocations: 0 / 404.1 MB, free: 5.953 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02065/0.3661, allocations: 7.477 MB / 411.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.3662, allocations: 8.031 kB / 411.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007053/0.3732, allocations: 1.311 MB / 412.9 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01049/0.3837, allocations: 5.02 MB / 417.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004851/0.3843, allocations: 0.498 MB / 418.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001836/0.3861, allocations: 0.6679 MB / 419.1 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01993/0.406, allocations: 9.465 MB / 428.6 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000214/0.4063, allocations: 11.91 kB / 428.6 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001126/0.4074, allocations: 276 kB / 428.8 MB, free: 12.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002831/0.4077, allocations: 297.4 kB / 429.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01906/0.4268, allocations: 8.087 MB / 437.2 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4109/0.8377, allocations: 29.56 MB / 466.8 MB, free: 89.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009493/0.8472, allocations: 11.98 MB / 478.7 MB, free: 81.36 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005265/0.8525, allocations: 3.404 MB / 482.2 MB, free: 80.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01255/0.8651, allocations: 8.008 MB / 490.2 MB, free: 75.54 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.393e-05/0.8652, allocations: 71.91 kB / 490.2 MB, free: 75.47 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 6.272e-06/0.8652, allocations: 0 / 490.2 MB, free: 75.47 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.02836/0.8936, allocations: 15.97 MB / 0.4943 GB, free: 63.81 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.8937, allocations: 89.95 kB / 0.4944 GB, free: 63.71 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00499/0.8987, allocations: 4.004 MB / 0.4983 GB, free: 59.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004963/0.8992, allocations: 77.7 kB / 0.4984 GB, free: 59.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.9006, allocations: 3.084 MB / 0.5014 GB, free: 56.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000914/0.9015, allocations: 1.099 MB / 0.5025 GB, free: 55.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003959/0.9019, allocations: 313.8 kB / 0.5028 GB, free: 55.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.492e-05/0.902, allocations: 305.1 kB / 0.5031 GB, free: 54.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002443/0.9044, allocations: 1.877 MB / 0.5049 GB, free: 52.92 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002547/0.907, allocations: 2.851 MB / 0.5077 GB, free: 49.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005062/0.9121, allocations: 4.924 MB / 0.5125 GB, free: 44.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.36e-05/0.9121, allocations: 8 kB / 0.5125 GB, free: 44.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008443/0.9205, allocations: 6.422 MB / 0.5188 GB, free: 37.78 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.205e-05/0.9206, allocations: 16 kB / 0.5188 GB, free: 37.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.347e-05/0.9206, allocations: 28 kB / 0.5188 GB, free: 37.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002396/0.923, allocations: 1.264 MB / 0.5201 GB, free: 36.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/0.926, allocations: 0.8113 MB / 0.5209 GB, free: 35.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01375/0.9398, allocations: 20.78 MB / 0.5412 GB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003178/0.943, allocations: 203.8 kB / 0.5413 GB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003863/0.9434, allocations: 156 kB / 0.5415 GB, free: 13.03 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.003138/0.9465, allocations: 2.188 MB / 0.5436 GB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007552/0.9473, allocations: 442.7 kB / 0.5441 GB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008152/0.9555, allocations: 6.065 MB / 0.55 GB, free: 4.148 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.087e-05/0.9556, allocations: 32 kB / 0.55 GB, free: 4.117 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.651e-05/0.9556, allocations: 16 kB / 0.55 GB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.593e-05/0.9557, allocations: 15.94 kB / 0.55 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02154/0.9772, allocations: 12.38 MB / 0.5621 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.9773, allocations: 7.969 kB / 0.5621 GB, free: 7.488 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/0.9793, allocations: 455.7 kB / 0.5626 GB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003841/0.9832, allocations: 1.618 MB / 0.5641 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003397/0.9835, allocations: 75.98 kB / 0.5642 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02726/1.011, allocations: 30.22 MB / 0.5937 GB, free: 4.969 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.011, allocations: 7.922 kB / 0.5937 GB, free: 4.961 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01399/1.025, allocations: 8.674 MB / 0.6022 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002591/1.027, allocations: 0.9096 MB / 0.6031 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007419/1.028, allocations: 71.98 kB / 0.6032 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002133/1.03, allocations: 195.8 kB / 0.6034 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008097/1.031, allocations: 281.9 kB / 0.6036 GB, free: 10.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002101/1.031, allocations: 87.97 kB / 0.6037 GB, free: 10.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004485/1.036, allocations: 2.721 MB / 0.6064 GB, free: 7.746 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.9e-07/1.036, allocations: 0 / 0.6064 GB, free: 7.746 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005507/1.041, allocations: 1.323 MB / 0.6077 GB, free: 6.426 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.0008246/1.042, allocations: 281.1 kB / 0.6079 GB, free: 6.145 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2212/1.264, allocations: 6.335 MB / 0.6141 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/1.264, allocations: 1.625 kB / 0.6141 GB, free: 150.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00845/1.272, allocations: 4.807 MB / 0.6188 GB, free: 148.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008131/1.28, allocations: 1.26 MB / 0.62 GB, free: 148.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02283/1.303, allocations: 16.51 MB / 0.6362 GB, free: 140.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003888/1.307, allocations: 4.49 MB / 0.6405 GB, free: 138.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003775/1.311, allocations: 1.052 MB / 0.6416 GB, free: 138.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007415/1.312, allocations: 276.1 kB / 0.6418 GB, free: 138.5 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/1.312, allocations: 0 / 0.6418 GB, free: 138.5 MB / 446.1 MB Notification: Performance of Templates: time 0.1065/1.418, allocations: 70.17 MB / 0.7104 GB, free: 71.46 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)