Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004752/0.004752, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001156/0.001156, allocations: 193 kB / 16.67 MB, free: 5.93 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.369/1.369, allocations: 205.1 MB / 222.5 MB, free: 4.535 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.00115/0.001151, allocations: 58.44 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09151/0.09267, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01787/0.1106, allocations: 16.75 MB / 389.9 MB, free: 484 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01717/0.1278, allocations: 5.712 MB / 395.7 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003844/0.1317, allocations: 99.56 kB / 395.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005698/0.1375, allocations: 1.386 MB / 397.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008107/0.1456, allocations: 1.825 MB / 399 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00369/0.1493, allocations: 1.064 MB / 400 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01102/0.1603, allocations: 6.319 MB / 406.3 MB, free: 4 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0107/0.1711, allocations: 5.284 MB / 411.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006761/0.1779, allocations: 2.956 MB / 414.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006693/0.1846, allocations: 3.335 MB / 417.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0015/0.1861, allocations: 0.7852 MB / 418.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002593/0.1887, allocations: 1.066 MB / 419.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001717/0.1904, allocations: 1.874 MB / 421.6 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003692/0.1941, allocations: 3.345 MB / 425 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01018/0.2043, allocations: 10.51 MB / 435.5 MB, free: 2.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.2044, allocations: 4 kB / 435.5 MB, free: 2.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2044, allocations: 0 / 435.5 MB, free: 2.688 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001428/0.2045, allocations: 0 / 435.5 MB, free: 2.688 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01385/0.2184, allocations: 6.506 MB / 442 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.2184, allocations: 15.89 kB / 442 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004673/0.2231, allocations: 1.052 MB / 443.1 MB, free: 11.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00538/0.2285, allocations: 3.419 MB / 446.5 MB, free: 7.527 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/0.2288, allocations: 373.7 kB / 446.9 MB, free: 7.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006838/0.2295, allocations: 475.9 kB / 447.3 MB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2443/0.4738, allocations: 6.866 MB / 454.2 MB, free: 64.75 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001969/0.474, allocations: 7.328 kB / 454.2 MB, free: 64.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000942/0.475, allocations: 201.8 kB / 454.4 MB, free: 64.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004598/0.4754, allocations: 237.2 kB / 454.6 MB, free: 64.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01258/0.488, allocations: 5.929 MB / 460.6 MB, free: 63.2 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02857/0.5166, allocations: 20.66 MB / 481.2 MB, free: 49.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006837/0.5235, allocations: 9.962 MB / 491.2 MB, free: 40.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002938/0.5264, allocations: 2.475 MB / 493.7 MB, free: 38.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008777/0.5352, allocations: 6.482 MB / 0.4884 GB, free: 32.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.5353, allocations: 65.44 kB / 0.4885 GB, free: 32.12 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.406e-06/0.5353, allocations: 0 / 0.4885 GB, free: 32.12 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01458/0.5499, allocations: 9.677 MB / 0.4979 GB, free: 22.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.5499, allocations: 81.39 kB / 0.498 GB, free: 22.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00336/0.5533, allocations: 2.984 MB / 0.5009 GB, free: 19.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001278/0.5534, allocations: 61.7 kB / 0.501 GB, free: 19.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009758/0.5544, allocations: 2.159 MB / 0.5031 GB, free: 16.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003744/0.5548, allocations: 0.762 MB / 0.5038 GB, free: 16.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005986/0.5554, allocations: 469 kB / 0.5043 GB, free: 15.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.422e-05/0.5554, allocations: 301.1 kB / 0.5046 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.557, allocations: 1.301 MB / 0.5058 GB, free: 14.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.5588, allocations: 1.916 MB / 0.5077 GB, free: 11.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003447/0.5622, allocations: 3.348 MB / 0.511 GB, free: 8.312 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.5622, allocations: 8 kB / 0.511 GB, free: 8.305 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00553/0.5678, allocations: 4.245 MB / 0.5151 GB, free: 4.016 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.5678, allocations: 20.03 kB / 0.5151 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.5678, allocations: 19.94 kB / 0.5152 GB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001876/0.5697, allocations: 0.7149 MB / 0.5159 GB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/0.5717, allocations: 0.5694 MB / 0.5164 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.5818, allocations: 10.88 MB / 0.527 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00273/0.5846, allocations: 111.8 kB / 0.5272 GB, free: 7.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002149/0.5848, allocations: 100 kB / 0.5273 GB, free: 7.055 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (278): * Single equations (assignments): 273 * 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 {(3,25,77.8%), (1,8,100.0%), (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.002922/0.5878, allocations: 1.613 MB / 0.5288 GB, free: 5.43 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005932/0.5884, allocations: 316.2 kB / 0.5291 GB, free: 5.117 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00641/0.5948, allocations: 3.902 MB / 0.5329 GB, free: 1.148 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/0.5948, allocations: 24 kB / 0.533 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-05/0.5948, allocations: 12 kB / 0.533 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.764e-05/0.5948, allocations: 7.969 kB / 0.533 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01312/0.608, allocations: 8.571 MB / 0.5414 GB, free: 8.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.608, allocations: 4 kB / 0.5414 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/0.6095, allocations: 343.8 kB / 0.5417 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002522/0.6121, allocations: 0.8739 MB / 0.5425 GB, free: 7.199 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001446/0.6122, allocations: 55.98 kB / 0.5426 GB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01531/0.6275, allocations: 15.69 MB / 0.5579 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.6276, allocations: 0 / 0.5579 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009021/0.6366, allocations: 5.701 MB / 0.5635 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001746/0.6384, allocations: 0.6807 MB / 0.5641 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003703/0.6388, allocations: 59.98 kB / 0.5642 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001372/0.6401, allocations: 104 kB / 0.5643 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004765/0.6406, allocations: 193.7 kB / 0.5645 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.6408, allocations: 60.55 kB / 0.5645 GB, free: 15.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003577/0.6444, allocations: 2.07 MB / 0.5666 GB, free: 13.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6444, allocations: 0 / 0.5666 GB, free: 13.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003355/0.6477, allocations: 0.9324 MB / 0.5675 GB, free: 12.74 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (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,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * 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,8,100.0%), (2,26,100.0%), (1,1,100.0%), (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.0006308/0.6484, allocations: 273.9 kB / 0.5677 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00586/0.6543, allocations: 3.908 MB / 0.5716 GB, free: 8.496 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.6543, allocations: 0 / 0.5716 GB, free: 8.496 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003868/0.6581, allocations: 2.625 MB / 0.5741 GB, free: 5.805 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003675/0.6618, allocations: 0.9145 MB / 0.575 GB, free: 4.887 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.6775, allocations: 9.404 MB / 0.5842 GB, free: 11.44 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/0.6805, allocations: 3.426 MB / 0.5875 GB, free: 7.98 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002293/0.6828, allocations: 0.7604 MB / 0.5883 GB, free: 7.215 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005363/0.6833, allocations: 195.4 kB / 0.5885 GB, free: 7.023 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.6833, allocations: 0 / 0.5885 GB, free: 7.023 MB / 462.1 MB Notification: Performance of Templates: time 0.2709/0.9542, allocations: 48.87 MB / 0.6362 GB, free: 157.6 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)