Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001541/0.001541, 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.001758/0.001758, allocations: 192.7 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.441/1.441, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001173/0.001173, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2098/0.211, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01455/0.2256, allocations: 13.69 MB / 339 MB, free: 6.176 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008965/0.2346, allocations: 4.491 MB / 343.5 MB, free: 1.672 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003735/0.2384, allocations: 75.69 kB / 343.6 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003059/0.2415, allocations: 1.04 MB / 344.6 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004216/0.2457, allocations: 1.386 MB / 346 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.2479, allocations: 0.9042 MB / 346.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00608/0.254, allocations: 4.732 MB / 351.6 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005527/0.2596, allocations: 3.64 MB / 355.3 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003494/0.2631, allocations: 2.185 MB / 357.5 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003754/0.2668, allocations: 2.46 MB / 359.9 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.2683, allocations: 0.5859 MB / 360.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0023/0.2706, allocations: 0.7967 MB / 361.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001784/0.2724, allocations: 1.34 MB / 362.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003666/0.2761, allocations: 2.47 MB / 365.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007469/0.2836, allocations: 7.712 MB / 372.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.2837, allocations: 0 / 372.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.582e-06/0.2837, allocations: 0 / 372.8 MB, free: 4.188 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002176/0.2839, allocations: 0 / 372.8 MB, free: 4.188 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.014/0.2979, allocations: 5.032 MB / 377.9 MB, free: 15.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.298, allocations: 8.031 kB / 377.9 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004328/0.3023, allocations: 0.8702 MB / 378.7 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00469/0.307, allocations: 2.631 MB / 381.4 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002034/0.3072, allocations: 275.6 kB / 381.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000608/0.3079, allocations: 359.8 kB / 382 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008406/0.3163, allocations: 5.036 MB / 387 MB, free: 5.801 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.411e-05/0.3164, allocations: 7.938 kB / 387 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003397/0.3167, allocations: 151.9 kB / 387.2 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001502/0.3169, allocations: 163.2 kB / 387.3 MB, free: 5.484 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007456/0.3244, allocations: 4.373 MB / 391.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0261/0.3505, allocations: 15.91 MB / 407.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007812/0.3583, allocations: 7.791 MB / 415.4 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002757/0.3611, allocations: 1.718 MB / 417.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008453/0.3696, allocations: 4.651 MB / 421.8 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.395e-05/0.3697, allocations: 51.88 kB / 421.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.757e-06/0.3697, allocations: 0 / 421.8 MB, free: 1.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.018/0.3877, allocations: 8.123 MB / 429.9 MB, free: 9.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.175e-05/0.3878, allocations: 68.72 kB / 430 MB, free: 9.191 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004334/0.3922, allocations: 2.163 MB / 432.2 MB, free: 6.992 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000141/0.3923, allocations: 53.7 kB / 432.2 MB, free: 6.934 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001334/0.3937, allocations: 1.615 MB / 433.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005313/0.3942, allocations: 0.5429 MB / 434.4 MB, free: 4.746 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006642/0.3949, allocations: 355.3 kB / 434.7 MB, free: 4.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.395, allocations: 309.1 kB / 435 MB, free: 4.09 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001622/0.3966, allocations: 0.9486 MB / 436 MB, free: 3.141 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.3985, allocations: 1.457 MB / 437.4 MB, free: 1.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/0.402, allocations: 2.503 MB / 439.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.402, allocations: 4 kB / 439.9 MB, free: 14.75 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.00571/0.4078, allocations: 3.355 MB / 443.3 MB, free: 11.35 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.935e-05/0.4078, allocations: 12 kB / 443.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.935e-05/0.4078, allocations: 16 kB / 443.3 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001884/0.4097, allocations: 0.7432 MB / 444.1 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.4112, allocations: 375.4 kB / 444.4 MB, free: 10.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1898/0.601, allocations: 11.34 MB / 455.8 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.6029, allocations: 84.88 kB / 455.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001829/0.6031, allocations: 79.39 kB / 455.9 MB, free: 107.4 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.002472/0.6056, allocations: 1.221 MB / 457.2 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005165/0.6061, allocations: 225.4 kB / 457.4 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005094/0.6112, allocations: 3.163 MB / 460.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-05/0.6112, allocations: 22.41 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.6113, allocations: 10.62 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-05/0.6113, allocations: 7.266 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008701/0.62, allocations: 6.567 MB / 467.1 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.62, allocations: 2.969 kB / 467.2 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008553/0.6209, allocations: 178.3 kB / 467.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001961/0.6229, allocations: 0.9211 MB / 468.2 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/0.623, allocations: 42.53 kB / 468.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01324/0.6363, allocations: 16.18 MB / 484.5 MB, free: 89.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.6363, allocations: 4.109 kB / 484.5 MB, free: 89.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005973/0.6423, allocations: 4.511 MB / 489 MB, free: 84.63 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/0.6433, allocations: 0.5197 MB / 489.5 MB, free: 84.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004752/0.6438, allocations: 39.98 kB / 489.5 MB, free: 84.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.6449, allocations: 71.94 kB / 489.6 MB, free: 84.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003631/0.6453, allocations: 169 kB / 489.8 MB, free: 83.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.388e-05/0.6454, allocations: 36 kB / 489.8 MB, free: 83.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001952/0.6474, allocations: 1.496 MB / 491.3 MB, free: 82.38 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.6474, allocations: 0 / 491.3 MB, free: 82.38 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00234/0.6497, allocations: 0.7037 MB / 492 MB, free: 81.67 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.0003229/0.65, allocations: 171.4 kB / 492.2 MB, free: 81.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005497/0.6555, allocations: 3.706 MB / 495.9 MB, free: 77.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.6556, allocations: 0 / 495.9 MB, free: 77.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002681/0.6583, allocations: 2.275 MB / 498.2 MB, free: 75.42 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.6607, allocations: 0.637 MB / 498.8 MB, free: 74.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009912/0.6706, allocations: 6.893 MB / 0.4938 GB, free: 67.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00224/0.6729, allocations: 2.684 MB / 0.4965 GB, free: 65.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001415/0.6743, allocations: 479.4 kB / 0.4969 GB, free: 64.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003624/0.6747, allocations: 135.4 kB / 0.497 GB, free: 64.56 MB / 382.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6747, allocations: 0 / 0.497 GB, free: 64.56 MB / 382.1 MB Notification: Performance of Templates: time 0.05371/0.7284, allocations: 38.31 MB / 0.5345 GB, free: 26.22 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)