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.00104/0.00104, 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.001233/0.001233, allocations: 190.5 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.356/1.356, 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.001345/0.001345, allocations: 47.94 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2231/0.2244, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01399/0.2385, allocations: 13.52 MB / 338.4 MB, free: 6.523 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009195/0.2477, allocations: 4.433 MB / 342.8 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002863/0.2507, allocations: 71.69 kB / 342.9 MB, free: 2.008 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.2537, allocations: 0.9172 MB / 343.8 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004531/0.2583, allocations: 1.248 MB / 345 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.2603, allocations: 0.8421 MB / 345.9 MB, free: 14.99 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006023/0.2663, allocations: 4.88 MB / 350.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003977/0.2703, allocations: 3.644 MB / 354.4 MB, free: 6.375 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.2732, allocations: 2.075 MB / 356.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002915/0.2761, allocations: 2.46 MB / 358.9 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007468/0.2768, allocations: 0.5859 MB / 359.5 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001516/0.2784, allocations: 0.7927 MB / 360.3 MB, free: 456 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.2795, allocations: 1.332 MB / 361.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002692/0.2822, allocations: 2.458 MB / 364.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00739/0.2896, allocations: 7.688 MB / 371.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.2896, allocations: 0 / 371.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2897, allocations: 0 / 371.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001608/0.2898, allocations: 3.984 kB / 371.8 MB, free: 4.926 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.01217/0.302, allocations: 5.017 MB / 376.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.3021, allocations: 8.031 kB / 376.8 MB, free: 15.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004309/0.3064, allocations: 0.8819 MB / 377.7 MB, free: 14.94 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004434/0.3108, allocations: 2.588 MB / 380.3 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.311, allocations: 267.6 kB / 380.6 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005347/0.3116, allocations: 363.8 kB / 380.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00893/0.3205, allocations: 5.033 MB / 385.9 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.901e-05/0.3206, allocations: 11.98 kB / 386 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003279/0.321, allocations: 144 kB / 386.1 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001442/0.3211, allocations: 163.2 kB / 386.3 MB, free: 6.281 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007147/0.3283, allocations: 4.373 MB / 390.6 MB, free: 1.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02296/0.3513, allocations: 15.91 MB / 406.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007442/0.3588, allocations: 7.788 MB / 414.3 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002534/0.3613, allocations: 1.737 MB / 416.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00733/0.3687, allocations: 4.64 MB / 420.7 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.3687, allocations: 51.86 kB / 420.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 3.076e-06/0.3687, allocations: 0 / 420.8 MB, free: 2.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01677/0.3855, allocations: 8.127 MB / 428.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.648e-05/0.3856, allocations: 72.72 kB / 429 MB, free: 9.977 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003592/0.3892, allocations: 2.151 MB / 431.1 MB, free: 7.789 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.3894, allocations: 57.7 kB / 431.2 MB, free: 7.727 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001179/0.3905, allocations: 1.615 MB / 432.8 MB, free: 6.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004513/0.391, allocations: 0.5506 MB / 433.3 MB, free: 5.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006054/0.3916, allocations: 355.3 kB / 433.7 MB, free: 5.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3917, allocations: 309.1 kB / 434 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001583/0.3933, allocations: 0.9447 MB / 434.9 MB, free: 3.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.3952, allocations: 1.457 MB / 436.4 MB, free: 2.258 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003509/0.3988, allocations: 2.503 MB / 438.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.601e-05/0.3988, allocations: 4 kB / 438.9 MB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005674/0.4045, allocations: 3.352 MB / 442.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.4045, allocations: 20.05 kB / 442.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.952e-05/0.4045, allocations: 12 kB / 442.3 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001914/0.4065, allocations: 0.7276 MB / 443 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.408, allocations: 387.3 kB / 443.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1674/0.5755, allocations: 11.35 MB / 454.7 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002289/0.5778, allocations: 88.02 kB / 454.8 MB, free: 107.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000251/0.5781, allocations: 78.66 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.002648/0.5807, allocations: 1.208 MB / 456.1 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006203/0.5814, allocations: 228.1 kB / 456.3 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004975/0.5863, allocations: 3.159 MB / 459.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.617e-05/0.5864, allocations: 16.69 kB / 459.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/0.5864, allocations: 12.7 kB / 459.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.5864, allocations: 8.141 kB / 459.5 MB, free: 106.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008747/0.5952, allocations: 6.573 MB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.5952, allocations: 1.344 kB / 466.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008023/0.596, allocations: 172.2 kB / 466.3 MB, free: 103.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001951/0.598, allocations: 0.9178 MB / 467.2 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.5981, allocations: 38.84 kB / 467.2 MB, free: 103.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/0.6101, allocations: 16.2 MB / 483.4 MB, free: 89.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.6101, allocations: 3.938 kB / 483.4 MB, free: 89.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005597/0.6157, allocations: 4.508 MB / 487.9 MB, free: 85.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.6168, allocations: 0.5196 MB / 488.4 MB, free: 84.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/0.6171, allocations: 39.94 kB / 488.5 MB, free: 84.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009306/0.6181, allocations: 75.94 kB / 488.6 MB, free: 84.78 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/0.6185, allocations: 157 kB / 488.7 MB, free: 84.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.093e-05/0.6186, allocations: 47.98 kB / 488.8 MB, free: 84.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001741/0.6203, allocations: 1.486 MB / 490.2 MB, free: 83.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6203, allocations: 0 / 490.2 MB, free: 83.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002996/0.6233, allocations: 0.7029 MB / 490.9 MB, free: 82.37 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.0004931/0.6238, allocations: 168 kB / 491.1 MB, free: 82.2 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005791/0.6296, allocations: 3.714 MB / 494.8 MB, free: 78.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6297, allocations: 0 / 494.8 MB, free: 78.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002644/0.6323, allocations: 2.277 MB / 497.1 MB, free: 76.12 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002903/0.6352, allocations: 0.6355 MB / 497.7 MB, free: 75.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.6455, allocations: 8.411 MB / 0.4943 GB, free: 67.07 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00176/0.6473, allocations: 2.684 MB / 0.4969 GB, free: 64.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001577/0.6489, allocations: 475.4 kB / 0.4974 GB, free: 63.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003131/0.6492, allocations: 139.4 kB / 0.4975 GB, free: 63.75 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.6492, allocations: 0 / 0.4975 GB, free: 63.75 MB / 382.1 MB Notification: Performance of Templates: time 0.05353/0.7027, allocations: 38.22 MB / 0.5348 GB, free: 25.5 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)