Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001398/0.001398, 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.001442/0.001442, allocations: 193.8 kB / 16.25 MB, free: 6.617 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.31/1.31, allocations: 205.1 MB / 222.1 MB, free: 4.691 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.001168/0.001168, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2016, allocations: 46.63 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01476/0.2164, allocations: 13.53 MB / 338.4 MB, free: 6.523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007818/0.2242, allocations: 4.425 MB / 342.8 MB, free: 2.086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001142/0.2255, allocations: 67.75 kB / 342.9 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002074/0.2275, allocations: 0.925 MB / 343.8 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002763/0.2303, allocations: 1.244 MB / 345 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001614/0.2319, allocations: 0.8342 MB / 345.9 MB, free: 15 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004724/0.2367, allocations: 4.881 MB / 350.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003615/0.2403, allocations: 3.644 MB / 354.4 MB, free: 6.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002424/0.2427, allocations: 2.075 MB / 356.5 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002353/0.2451, allocations: 2.46 MB / 358.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006061/0.2457, allocations: 0.5898 MB / 359.5 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001199/0.2469, allocations: 0.7888 MB / 360.3 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.248, allocations: 1.332 MB / 361.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.2502, allocations: 2.466 MB / 364.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005893/0.2561, allocations: 7.685 MB / 371.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2561, allocations: 0 / 371.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2561, allocations: 0 / 371.8 MB, free: 4.941 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.2562, allocations: 0 / 371.8 MB, free: 4.941 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01069/0.2669, allocations: 5.025 MB / 376.8 MB, free: 15.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.267, allocations: 8.031 kB / 376.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004124/0.2711, allocations: 0.8741 MB / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003959/0.2751, allocations: 2.592 MB / 380.3 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.2753, allocations: 275.5 kB / 380.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004898/0.2758, allocations: 359.8 kB / 380.9 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008323/0.2841, allocations: 5.029 MB / 385.9 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.53e-05/0.2842, allocations: 7.984 kB / 386 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.2845, allocations: 152 kB / 386.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.2847, allocations: 163.2 kB / 386.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006799/0.2915, allocations: 4.381 MB / 390.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/0.3155, allocations: 15.91 MB / 406.6 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006991/0.3225, allocations: 7.772 MB / 414.3 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002363/0.3249, allocations: 1.725 MB / 416 MB, free: 7.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00706/0.332, allocations: 4.651 MB / 420.7 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.771e-05/0.3321, allocations: 59.8 kB / 420.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 2.725e-06/0.3321, allocations: 0 / 420.8 MB, free: 2.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01589/0.348, allocations: 8.119 MB / 428.9 MB, free: 10.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.256e-05/0.348, allocations: 72.72 kB / 428.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002971/0.351, allocations: 2.155 MB / 431.1 MB, free: 7.801 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001078/0.3511, allocations: 53.7 kB / 431.2 MB, free: 7.742 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/0.3522, allocations: 1.619 MB / 432.8 MB, free: 6.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003971/0.3526, allocations: 0.5505 MB / 433.3 MB, free: 5.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005412/0.3531, allocations: 355.3 kB / 433.7 MB, free: 5.191 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.771e-05/0.3532, allocations: 305.1 kB / 434 MB, free: 4.891 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001395/0.3546, allocations: 0.9525 MB / 434.9 MB, free: 3.938 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.3564, allocations: 1.449 MB / 436.4 MB, free: 2.273 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003148/0.3595, allocations: 2.507 MB / 438.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/0.3595, allocations: 8 kB / 438.9 MB, free: 15.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005118/0.3647, allocations: 3.347 MB / 442.2 MB, free: 12.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.04e-05/0.3647, allocations: 15.98 kB / 442.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.897e-05/0.3647, allocations: 20.41 kB / 442.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001696/0.3664, allocations: 0.7315 MB / 443 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001382/0.3678, allocations: 383.3 kB / 443.4 MB, free: 11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1821/0.5499, allocations: 11.35 MB / 454.7 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002018/0.552, allocations: 82.12 kB / 454.8 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002209/0.5522, allocations: 80.72 kB / 454.9 MB, free: 107.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002468/0.5547, allocations: 1.209 MB / 456.1 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.5552, allocations: 232.8 kB / 456.3 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/0.5603, allocations: 3.155 MB / 459.5 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/0.5603, allocations: 15.31 kB / 459.5 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/0.5603, allocations: 10.75 kB / 459.5 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.446e-05/0.5604, allocations: 14.06 kB / 459.5 MB, free: 106.6 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008768/0.5691, allocations: 6.57 MB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.795e-06/0.5692, allocations: 7.844 kB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008397/0.57, allocations: 171.4 kB / 466.3 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002081/0.5721, allocations: 0.916 MB / 467.2 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.5722, allocations: 41.25 kB / 467.2 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.5848, allocations: 16.19 MB / 483.4 MB, free: 89.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.5848, allocations: 7.922 kB / 483.4 MB, free: 89.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005777/0.5906, allocations: 4.506 MB / 487.9 MB, free: 85.35 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009454/0.5916, allocations: 0.5236 MB / 488.4 MB, free: 84.92 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/0.5919, allocations: 43.94 kB / 488.5 MB, free: 84.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009914/0.5929, allocations: 75.94 kB / 488.6 MB, free: 84.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000399/0.5933, allocations: 153.1 kB / 488.7 MB, free: 84.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.142e-05/0.5934, allocations: 54.17 kB / 488.8 MB, free: 84.6 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001703/0.5951, allocations: 1.485 MB / 490.2 MB, free: 83.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5951, allocations: 0 / 490.2 MB, free: 83.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002203/0.5973, allocations: 0.703 MB / 490.9 MB, free: 82.39 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,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.000313/0.5976, allocations: 171.2 kB / 491.1 MB, free: 82.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005702/0.6033, allocations: 3.712 MB / 494.8 MB, free: 78.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.6033, allocations: 0 / 494.8 MB, free: 78.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.6059, allocations: 2.268 MB / 497.1 MB, free: 76.15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.6085, allocations: 0.6366 MB / 497.7 MB, free: 75.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01043/0.6189, allocations: 8.406 MB / 0.4943 GB, free: 67.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001833/0.6208, allocations: 2.682 MB / 0.4969 GB, free: 64.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.6224, allocations: 479.4 kB / 0.4974 GB, free: 63.92 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003077/0.6228, allocations: 135.4 kB / 0.4975 GB, free: 63.79 MB / 382.1 MB Notification: Performance of SimCode: time 9.21e-07/0.6228, allocations: 3.5 kB / 0.4975 GB, free: 63.79 MB / 382.1 MB Notification: Performance of Templates: time 0.05287/0.6756, allocations: 38.22 MB / 0.5348 GB, free: 25.53 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)