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.001076/0.001076, 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.001105/0.001105, allocations: 195.2 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.366/1.366, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001199/0.001199, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2291/0.2303, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01497/0.2453, allocations: 13.68 MB / 339 MB, free: 6.211 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009175/0.2545, allocations: 4.495 MB / 343.5 MB, free: 1.703 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003163/0.2578, allocations: 75.69 kB / 343.6 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.2607, allocations: 1.04 MB / 344.6 MB, free: 0.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004438/0.2651, allocations: 1.382 MB / 346 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.2674, allocations: 0.912 MB / 346.9 MB, free: 14.28 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006175/0.2736, allocations: 4.728 MB / 351.6 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003995/0.2776, allocations: 3.64 MB / 355.3 MB, free: 5.82 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002937/0.2806, allocations: 2.181 MB / 357.4 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003295/0.2839, allocations: 2.456 MB / 359.9 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000853/0.2848, allocations: 0.5938 MB / 360.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.2864, allocations: 0.8005 MB / 361.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.2875, allocations: 1.332 MB / 362.6 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.2902, allocations: 2.474 MB / 365.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007434/0.2976, allocations: 7.704 MB / 372.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.2977, allocations: 0 / 372.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2977, allocations: 0 / 372.8 MB, free: 4.227 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001484/0.2978, allocations: 4 kB / 372.8 MB, free: 4.223 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.01184/0.3097, allocations: 5.036 MB / 377.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3098, allocations: 8.031 kB / 377.9 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004405/0.3142, allocations: 0.878 MB / 378.7 MB, free: 14.22 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004543/0.3187, allocations: 2.623 MB / 381.4 MB, free: 11.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.319, allocations: 275.6 kB / 381.6 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005368/0.3195, allocations: 363.8 kB / 382 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008749/0.3283, allocations: 5.033 MB / 387 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.78e-05/0.3284, allocations: 4 kB / 387 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003381/0.3287, allocations: 148 kB / 387.2 MB, free: 5.684 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/0.3289, allocations: 167.1 kB / 387.3 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007344/0.3362, allocations: 4.373 MB / 391.7 MB, free: 1.141 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02365/0.3599, allocations: 15.91 MB / 407.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007516/0.3675, allocations: 7.788 MB / 415.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002588/0.3701, allocations: 1.725 MB / 417.1 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007503/0.3776, allocations: 4.651 MB / 421.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.749e-05/0.3776, allocations: 55.81 kB / 421.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.387e-06/0.3777, allocations: 0 / 421.8 MB, free: 1.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01666/0.3943, allocations: 8.115 MB / 429.9 MB, free: 9.301 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.375e-05/0.3944, allocations: 72.72 kB / 430 MB, free: 9.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003173/0.3976, allocations: 2.163 MB / 432.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.3977, allocations: 53.7 kB / 432.2 MB, free: 6.961 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3988, allocations: 1.615 MB / 433.8 MB, free: 5.324 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003999/0.3993, allocations: 0.5546 MB / 434.4 MB, free: 4.762 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005396/0.3998, allocations: 351.3 kB / 434.7 MB, free: 4.414 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.3999, allocations: 305.1 kB / 435 MB, free: 4.113 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.4014, allocations: 0.9447 MB / 436 MB, free: 3.168 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/0.4032, allocations: 1.453 MB / 437.4 MB, free: 1.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003369/0.4065, allocations: 2.507 MB / 439.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.4066, allocations: 4 kB / 439.9 MB, free: 14.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005503/0.4121, allocations: 3.355 MB / 443.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.675e-05/0.4121, allocations: 16.41 kB / 443.3 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.253e-05/0.4121, allocations: 20 kB / 443.3 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/0.4139, allocations: 0.7354 MB / 444.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.4154, allocations: 379.4 kB / 444.4 MB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1924/0.6078, allocations: 11.34 MB / 455.8 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002039/0.6099, allocations: 84.11 kB / 455.9 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002243/0.6101, allocations: 81.44 kB / 455.9 MB, free: 107.3 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.002278/0.6124, allocations: 1.212 MB / 457.2 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004511/0.6129, allocations: 225.5 kB / 457.4 MB, free: 107.2 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005393/0.6183, allocations: 3.161 MB / 460.5 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.6183, allocations: 17.36 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.156e-05/0.6183, allocations: 10.53 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.669e-05/0.6184, allocations: 7.969 kB / 460.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009381/0.6277, allocations: 6.579 MB / 467.2 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.812e-06/0.6278, allocations: 0 / 467.2 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.6286, allocations: 172.1 kB / 467.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.6307, allocations: 0.9197 MB / 468.2 MB, free: 102.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.6308, allocations: 50.08 kB / 468.3 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/0.6438, allocations: 16.19 MB / 484.5 MB, free: 89.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.6438, allocations: 4.031 kB / 484.5 MB, free: 89.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006276/0.6501, allocations: 4.496 MB / 489 MB, free: 84.69 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.6513, allocations: 0.5236 MB / 489.5 MB, free: 84.26 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.6516, allocations: 40 kB / 489.5 MB, free: 84.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009919/0.6526, allocations: 79.94 kB / 489.6 MB, free: 84.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004427/0.6531, allocations: 154.6 kB / 489.8 MB, free: 83.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.186e-05/0.6532, allocations: 47.98 kB / 489.8 MB, free: 83.95 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002112/0.6553, allocations: 1.489 MB / 491.3 MB, free: 82.44 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6553, allocations: 0 / 491.3 MB, free: 82.44 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002475/0.6578, allocations: 0.7018 MB / 492 MB, free: 81.74 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.0003207/0.6581, allocations: 172.6 kB / 492.2 MB, free: 81.56 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006173/0.6643, allocations: 3.714 MB / 495.9 MB, free: 77.8 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.6643, allocations: 3.938 kB / 495.9 MB, free: 77.8 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002722/0.667, allocations: 2.267 MB / 498.2 MB, free: 75.48 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002367/0.6694, allocations: 0.6341 MB / 498.8 MB, free: 74.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009917/0.6793, allocations: 6.899 MB / 0.4938 GB, free: 67.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001898/0.6813, allocations: 2.678 MB / 0.4965 GB, free: 65.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001459/0.6827, allocations: 479.4 kB / 0.4969 GB, free: 64.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003166/0.6831, allocations: 143.4 kB / 0.4971 GB, free: 64.62 MB / 382.1 MB Notification: Performance of SimCode: time 7.31e-07/0.6831, allocations: 0 / 0.4971 GB, free: 64.62 MB / 382.1 MB Notification: Performance of Templates: time 0.05544/0.7385, allocations: 38.3 MB / 0.5345 GB, free: 26.29 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)