Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001184/0.001185, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.925/1.925, allocations: 205.1 MB / 223.7 MB, free: 12.29 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.002011/0.002011, allocations: 56.14 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1381/0.1401, allocations: 46.62 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start): time 0.01575/0.1559, allocations: 11.77 MB / 338.4 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009356/0.1653, allocations: 3.798 MB / 342.2 MB, free: 4.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.1674, allocations: 55.75 kB / 342.3 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002286/0.1698, allocations: 0.8655 MB / 343.1 MB, free: 3.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003416/0.1732, allocations: 1.087 MB / 344.2 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001893/0.1751, allocations: 0.4915 MB / 344.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007723/0.1829, allocations: 4.242 MB / 348.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005334/0.1883, allocations: 3.209 MB / 352.1 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003568/0.1919, allocations: 1.896 MB / 354 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/0.1966, allocations: 2.32 MB / 356.4 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002082/0.1987, allocations: 0.4961 MB / 356.9 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002449/0.2012, allocations: 0.5897 MB / 357.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001598/0.2028, allocations: 1.395 MB / 358.8 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003144/0.206, allocations: 2.205 MB / 361 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007576/0.2136, allocations: 6.492 MB / 367.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.2136, allocations: 0 / 367.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2136, allocations: 0 / 367.5 MB, free: 11.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002017/0.2138, allocations: 0 / 367.5 MB, free: 11.32 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.0108/0.2246, allocations: 4.294 MB / 371.8 MB, free: 6.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.362e-05/0.2247, allocations: 15.89 kB / 371.9 MB, free: 6.941 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001271/0.226, allocations: 444 kB / 372.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.2303, allocations: 2.223 MB / 374.5 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.2305, allocations: 238.1 kB / 374.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004621/0.231, allocations: 303.9 kB / 375 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2986/0.5296, allocations: 4.361 MB / 379.4 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001545/0.5298, allocations: 10.22 kB / 379.4 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004712/0.5303, allocations: 126.8 kB / 379.5 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002192/0.5305, allocations: 132.2 kB / 379.7 MB, free: 48.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.5439, allocations: 3.774 MB / 383.4 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03137/0.5753, allocations: 13.54 MB / 397 MB, free: 39.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003795/0.5791, allocations: 2.904 MB / 399.9 MB, free: 37.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002316/0.5815, allocations: 1.69 MB / 401.6 MB, free: 36.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002553/0.5818, allocations: 127.5 kB / 401.7 MB, free: 36.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.992e-05/0.5818, allocations: 51.47 kB / 401.7 MB, free: 36.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=164): time 4.719e-06/0.5818, allocations: 3.984 kB / 401.8 MB, free: 36.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=180): time 0.01955/0.6014, allocations: 9.211 MB / 411 MB, free: 28.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.831e-05/0.6015, allocations: 69.41 kB / 411 MB, free: 28.86 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00448/0.606, allocations: 2.361 MB / 413.4 MB, free: 26.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005046/0.6065, allocations: 57.7 kB / 413.4 MB, free: 26.4 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.6079, allocations: 1.464 MB / 414.9 MB, free: 24.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007659/0.6087, allocations: 0.6109 MB / 415.5 MB, free: 24.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000631/0.6094, allocations: 363.3 kB / 415.9 MB, free: 23.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.6095, allocations: 309.1 kB / 416.2 MB, free: 23.66 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.6111, allocations: 1.124 MB / 417.3 MB, free: 22.53 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001706/0.6128, allocations: 1.575 MB / 418.9 MB, free: 20.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003203/0.616, allocations: 2.78 MB / 421.7 MB, free: 17.84 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.979e-06/0.6161, allocations: 8 kB / 421.7 MB, free: 17.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=253) (initialization): time 0.005793/0.6219, allocations: 3.592 MB / 425.3 MB, free: 14.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.6219, allocations: 8 kB / 425.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-05/0.622, allocations: 16 kB / 425.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001861/0.6238, allocations: 0.7998 MB / 426.1 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001618/0.6255, allocations: 466.6 kB / 426.5 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01111/0.6366, allocations: 11.17 MB / 437.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/0.6396, allocations: 127.7 kB / 437.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.6398, allocations: 79.98 kB / 437.9 MB, free: 0.8359 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 6 (switchedRheostat.booleanStep[3].y,switchedRheostat.booleanStep[2].y,switchedRheostat.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 (220): * Single equations (assignments): 213 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 5 systems {(2,14,100.0%), (1,1,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.002664/0.6425, allocations: 1.087 MB / 439 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009049/0.6434, allocations: 241.1 kB / 439.2 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005952/0.6493, allocations: 3.312 MB / 442.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-05/0.6494, allocations: 16 kB / 442.6 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.306e-05/0.6494, allocations: 8 kB / 442.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.6494, allocations: 7.969 kB / 442.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.6621, allocations: 6.891 MB / 449.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.6622, allocations: 4 kB / 449.5 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.6634, allocations: 299.5 kB / 449.8 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/0.6659, allocations: 0.9283 MB / 450.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000142/0.666, allocations: 43.98 kB / 450.7 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0147/0.6807, allocations: 14.59 MB / 465.3 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.649e-06/0.6808, allocations: 11.91 kB / 465.3 MB, free: 4.285 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00858/0.6894, allocations: 4.855 MB / 470.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002082/0.6915, allocations: 0.5682 MB / 470.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003922/0.6919, allocations: 44 kB / 470.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001309/0.6932, allocations: 123.8 kB / 470.9 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005025/0.6937, allocations: 157.7 kB / 471.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.6938, allocations: 47.98 kB / 471.1 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002847/0.6967, allocations: 1.625 MB / 472.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6967, allocations: 0 / 472.8 MB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003097/0.6998, allocations: 0.7055 MB / 473.5 MB, free: 12.07 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.inertiaRotor.w,aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * 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): 7 systems {(2,14,100.0%), (1,1,100.0%), (2,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000521/0.7004, allocations: 211.4 kB / 473.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.009642/0.71, allocations: 4.862 MB / 478.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/0.7101, allocations: 4 kB / 478.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00395/0.714, allocations: 2.497 MB / 481 MB, free: 4.297 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004113/0.7182, allocations: 0.7116 MB / 481.7 MB, free: 3.582 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.7326, allocations: 6.837 MB / 488.6 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003056/0.7357, allocations: 2.525 MB / 491.1 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002701/0.7385, allocations: 0.5866 MB / 491.7 MB, free: 9.57 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005199/0.739, allocations: 155.4 kB / 491.8 MB, free: 9.418 MB / 382.1 MB Notification: Performance of SimCode: time 1.803e-06/0.739, allocations: 0 / 491.8 MB, free: 9.418 MB / 382.1 MB Notification: Performance of Templates: time 0.3604/1.099, allocations: 42.18 MB / 0.5215 GB, free: 131.5 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMS_Start.pipe 2>&1)