Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001034/0.001034, allocations: 87.88 kB / 16.31 MB, free: 6.453 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.001089/0.001089, allocations: 178.3 kB / 17.21 MB, free: 6.328 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.555/1.555, allocations: 205.4 MB / 223.4 MB, free: 5.562 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.0004385/0.0004386, allocations: 8 kB / 280.1 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2246, allocations: 47.58 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01247/0.2371, allocations: 12.04 MB / 339.8 MB, free: 7.438 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008693/0.2459, allocations: 4.194 MB / 344 MB, free: 3.234 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002401/0.2483, allocations: 67.69 kB / 344 MB, free: 3.168 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002857/0.2512, allocations: 0.769 MB / 344.8 MB, free: 2.395 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003965/0.2552, allocations: 1.146 MB / 345.9 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002135/0.2573, allocations: 0.6159 MB / 346.6 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006922/0.2643, allocations: 4.748 MB / 351.3 MB, free: 11.86 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005107/0.2694, allocations: 2.549 MB / 353.9 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.2724, allocations: 1.494 MB / 355.3 MB, free: 7.762 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003802/0.2763, allocations: 1.906 MB / 357.3 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001212/0.2775, allocations: 240 kB / 357.5 MB, free: 5.613 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00242/0.2799, allocations: 431.7 kB / 357.9 MB, free: 5.191 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001817/0.2818, allocations: 0.907 MB / 358.8 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0022/0.284, allocations: 0.8512 MB / 359.7 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008506/0.2925, allocations: 6.327 MB / 366 MB, free: 13.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2926, allocations: 4 kB / 366 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2926, allocations: 0 / 366 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002654/0.2929, allocations: 0 / 366 MB, free: 13.07 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.01233/0.3052, allocations: 4.296 MB / 370.3 MB, free: 8.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.967e-05/0.3053, allocations: 12.03 kB / 370.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005065/0.3103, allocations: 0.8849 MB / 371.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005485/0.3159, allocations: 2.507 MB / 373.7 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003151/0.3162, allocations: 275.2 kB / 374 MB, free: 4.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/0.3173, allocations: 359.9 kB / 374.3 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.3288, allocations: 5.021 MB / 379.3 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.177e-05/0.3289, allocations: 11.98 kB / 379.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003644/0.3293, allocations: 140 kB / 379.5 MB, free: 15.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001633/0.3295, allocations: 167.2 kB / 379.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008401/0.3379, allocations: 4.377 MB / 384 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03023/0.3681, allocations: 15.99 MB / 400 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008217/0.3764, allocations: 7.78 MB / 407.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003262/0.3797, allocations: 1.729 MB / 409.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009093/0.3888, allocations: 4.663 MB / 414.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.925e-05/0.3889, allocations: 59.81 kB / 414.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.717e-06/0.3889, allocations: 3.938 kB / 414.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.02053/0.4095, allocations: 8.186 MB / 422.4 MB, free: 2.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.4095, allocations: 68.72 kB / 422.5 MB, free: 2.773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003956/0.4135, allocations: 2.147 MB / 424.7 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/0.4137, allocations: 53.64 kB / 424.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.4151, allocations: 1.623 MB / 426.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005909/0.4157, allocations: 0.5429 MB / 426.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.4159, allocations: 44 kB / 426.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.4161, allocations: 385.8 kB / 427.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.4179, allocations: 0.9447 MB / 428.2 MB, free: 12.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002205/0.4201, allocations: 1.457 MB / 429.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002138/0.4223, allocations: 1.181 MB / 430.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.57e-05/0.4223, allocations: 4 kB / 430.9 MB, free: 10.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006357/0.4287, allocations: 3.359 MB / 434.2 MB, free: 6.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.963e-05/0.4287, allocations: 12 kB / 434.2 MB, free: 6.695 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.371e-05/0.4288, allocations: 16 kB / 434.3 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/0.4309, allocations: 0.7357 MB / 435 MB, free: 5.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.4324, allocations: 379.4 kB / 435.4 MB, free: 5.559 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01233/0.4447, allocations: 10.4 MB / 445.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.4467, allocations: 91.86 kB / 445.9 MB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000336/0.447, allocations: 76 kB / 445.9 MB, free: 10.45 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 (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 initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002898/0.4499, allocations: 1.216 MB / 447.2 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006593/0.4506, allocations: 225.3 kB / 447.4 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006403/0.457, allocations: 3.179 MB / 450.6 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.4571, allocations: 19.95 kB / 450.6 MB, free: 5.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.054e-05/0.4571, allocations: 8 kB / 450.6 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.872e-05/0.4571, allocations: 7.969 kB / 450.6 MB, free: 5.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2114/0.6686, allocations: 6.572 MB / 457.2 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.021e-05/0.6686, allocations: 6.031 kB / 457.2 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.6698, allocations: 182.5 kB / 457.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002617/0.6724, allocations: 0.9122 MB / 458.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002199/0.6726, allocations: 45.12 kB / 458.3 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01359/0.6862, allocations: 14.79 MB / 473.1 MB, free: 97.03 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.6863, allocations: 5.109 kB / 473.1 MB, free: 97.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006461/0.6927, allocations: 4.527 MB / 477.6 MB, free: 95.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.6939, allocations: 0.5217 MB / 478.1 MB, free: 94.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.6942, allocations: 35.56 kB / 478.2 MB, free: 94.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009716/0.6952, allocations: 84.5 kB / 478.3 MB, free: 94.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004567/0.6956, allocations: 160.2 kB / 478.4 MB, free: 94.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.961e-05/0.6958, allocations: 44.53 kB / 478.5 MB, free: 94.76 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002095/0.6979, allocations: 1.468 MB / 479.9 MB, free: 94.17 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6979, allocations: 3.828 kB / 479.9 MB, free: 94.17 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002475/0.7003, allocations: 0.7044 MB / 480.6 MB, free: 94.11 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000376/0.7007, allocations: 172.2 kB / 480.8 MB, free: 93.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004063/0.7048, allocations: 3.123 MB / 483.9 MB, free: 91.76 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.7048, allocations: 4 kB / 483.9 MB, free: 91.76 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002834/0.7077, allocations: 2.272 MB / 486.2 MB, free: 89.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002847/0.7105, allocations: 0.6146 MB / 486.8 MB, free: 88.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.7215, allocations: 8.151 MB / 495 MB, free: 80.68 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001954/0.7235, allocations: 2.678 MB / 497.6 MB, free: 77.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001644/0.7251, allocations: 479.4 kB / 498.1 MB, free: 77.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003412/0.7255, allocations: 135.4 kB / 498.2 MB, free: 77.36 MB / 382.1 MB Notification: Performance of SimCode: time 1.453e-06/0.7255, allocations: 0 / 498.2 MB, free: 77.36 MB / 382.1 MB Notification: Performance of Templates: time 0.05263/0.7781, allocations: 35.43 MB / 0.5212 GB, free: 41.89 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)