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.001414/0.001414, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001714/0.001714, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.367/1.367, allocations: 205.1 MB / 222.1 MB, free: 4.688 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.001137/0.001137, allocations: 55.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.213, allocations: 46.63 MB / 324.9 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02218/0.2352, allocations: 23.25 MB / 348.1 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01459/0.2499, allocations: 6.805 MB / 354.9 MB, free: 5.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00607/0.256, allocations: 131.4 kB / 355 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005434/0.2615, allocations: 1.395 MB / 356.4 MB, free: 4.418 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007795/0.2693, allocations: 2.153 MB / 358.6 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.273, allocations: 1.31 MB / 359.9 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.011/0.284, allocations: 9.03 MB / 368.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008115/0.2922, allocations: 7.011 MB / 375.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00581/0.298, allocations: 3.945 MB / 379.9 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007064/0.3051, allocations: 4.772 MB / 384.7 MB, free: 8.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002872/0.308, allocations: 1.102 MB / 385.8 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004693/0.3127, allocations: 1.394 MB / 387.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003237/0.316, allocations: 2.716 MB / 389.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007086/0.3231, allocations: 4.676 MB / 394.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01374/0.3369, allocations: 14.31 MB / 408.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3369, allocations: 0 / 408.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3369, allocations: 0 / 408.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003542/0.3373, allocations: 0 / 408.9 MB, free: 15.75 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.02319/0.3605, allocations: 8.896 MB / 417.8 MB, free: 6.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/0.3605, allocations: 8.031 kB / 417.8 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006301/0.3668, allocations: 1.307 MB / 419.1 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01105/0.3779, allocations: 4.993 MB / 424.1 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005317/0.3785, allocations: 0.4981 MB / 424.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002705/0.3812, allocations: 0.6639 MB / 425.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02137/0.4026, allocations: 9.445 MB / 434.7 MB, free: 5.648 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001766/0.4028, allocations: 19.83 kB / 434.7 MB, free: 5.629 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008734/0.4037, allocations: 283.9 kB / 435 MB, free: 5.352 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002734/0.4039, allocations: 289.4 kB / 435.2 MB, free: 5.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01644/0.4204, allocations: 8.079 MB / 443.3 MB, free: 12.97 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3601/0.7806, allocations: 29.39 MB / 472.7 MB, free: 89.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008603/0.7892, allocations: 11.97 MB / 484.7 MB, free: 79.32 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004377/0.7936, allocations: 3.383 MB / 488.1 MB, free: 77.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01183/0.8055, allocations: 7.999 MB / 496.1 MB, free: 72.64 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.8056, allocations: 64.78 kB / 496.1 MB, free: 72.58 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 4.669e-06/0.8056, allocations: 0 / 496.1 MB, free: 72.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.02656/0.8321, allocations: 15.83 MB / 0.5 GB, free: 57.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.8322, allocations: 85.95 kB / 0.5 GB, free: 57.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004728/0.837, allocations: 4 MB / 0.504 GB, free: 53.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003785/0.8374, allocations: 81.36 kB / 0.504 GB, free: 53.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.8387, allocations: 3.086 MB / 0.507 GB, free: 50.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006582/0.8394, allocations: 1.096 MB / 0.5081 GB, free: 48.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008961/0.8403, allocations: 0.6728 MB / 0.5088 GB, free: 48.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.075e-05/0.8403, allocations: 309.1 kB / 0.5091 GB, free: 47.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002241/0.8426, allocations: 1.862 MB / 0.5109 GB, free: 46.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002626/0.8452, allocations: 2.847 MB / 0.5137 GB, free: 42.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004874/0.8501, allocations: 4.896 MB / 0.5184 GB, free: 37.52 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.882e-05/0.8501, allocations: 8 kB / 0.5185 GB, free: 37.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008257/0.8584, allocations: 6.402 MB / 0.5247 GB, free: 30.99 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.8585, allocations: 19.94 kB / 0.5247 GB, free: 30.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-05/0.8585, allocations: 32 kB / 0.5248 GB, free: 30.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002391/0.8609, allocations: 1.272 MB / 0.526 GB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002681/0.8636, allocations: 0.819 MB / 0.5268 GB, free: 28.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01377/0.8774, allocations: 22.54 MB / 0.5488 GB, free: 4.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003448/0.8809, allocations: 191.8 kB / 0.549 GB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000293/0.8812, allocations: 155.8 kB / 0.5491 GB, free: 4.391 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.003019/0.8842, allocations: 2.183 MB / 0.5513 GB, free: 2.195 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007477/0.885, allocations: 450.5 kB / 0.5517 GB, free: 1.75 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008992/0.894, allocations: 6.058 MB / 0.5576 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.592e-05/0.894, allocations: 32 kB / 0.5577 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.296e-05/0.894, allocations: 12 kB / 0.5577 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-05/0.8941, allocations: 19.88 kB / 0.5577 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01932/0.9134, allocations: 12.38 MB / 0.5698 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/0.9134, allocations: 8.031 kB / 0.5698 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001875/0.9153, allocations: 447.3 kB / 0.5702 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003782/0.9191, allocations: 1.63 MB / 0.5718 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002563/0.9194, allocations: 75.98 kB / 0.5719 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02797/0.9474, allocations: 32.9 MB / 0.604 GB, free: 9.551 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.9474, allocations: 3.938 kB / 0.604 GB, free: 9.547 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01393/0.9614, allocations: 8.636 MB / 0.6124 GB, free: 0.6562 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1872/1.149, allocations: 0.9119 MB / 0.6133 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001518/1.15, allocations: 69.14 kB / 0.6134 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/1.153, allocations: 180.1 kB / 0.6136 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009607/1.154, allocations: 278.6 kB / 0.6138 GB, free: 149.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.154, allocations: 82.59 kB / 0.6139 GB, free: 149.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004682/1.159, allocations: 2.728 MB / 0.6166 GB, free: 149.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.159, allocations: 1.203 kB / 0.6166 GB, free: 149.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005042/1.164, allocations: 1.336 MB / 0.6179 GB, free: 149.7 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.0006674/1.164, allocations: 274.6 kB / 0.6181 GB, free: 149.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01616/1.181, allocations: 9.421 MB / 0.6273 GB, free: 147.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.826e-06/1.181, allocations: 4.031 kB / 0.6273 GB, free: 147.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005597/1.186, allocations: 4.781 MB / 0.632 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005837/1.192, allocations: 1.338 MB / 0.6333 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02231/1.214, allocations: 16.27 MB / 0.6492 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004176/1.219, allocations: 4.478 MB / 0.6536 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00374/1.222, allocations: 1.059 MB / 0.6546 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007398/1.223, allocations: 278.8 kB / 0.6549 GB, free: 126.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.363e-06/1.223, allocations: 5.797 kB / 0.6549 GB, free: 126.7 MB / 446.1 MB Notification: Performance of Templates: time 0.1069/1.33, allocations: 73.75 MB / 0.7269 GB, free: 52.97 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)