Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001543/0.001543, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001792/0.001792, allocations: 199.1 kB / 16.14 MB, free: 6.66 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.306/1.306, allocations: 205.1 MB / 222 MB, free: 4.98 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.001192/0.001192, allocations: 59.91 kB / 278.1 MB, free: 12.96 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2312, allocations: 46.61 MB / 324.7 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.02007/0.2514, allocations: 16.56 MB / 341.2 MB, free: 3.578 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.2634, allocations: 5.651 MB / 346.9 MB, free: 13.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004205/0.2677, allocations: 91.56 kB / 347 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004066/0.2718, allocations: 1.162 MB / 348.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006584/0.2784, allocations: 1.632 MB / 349.8 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003003/0.2815, allocations: 0.9792 MB / 350.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009465/0.2909, allocations: 6.923 MB / 357.7 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006374/0.2974, allocations: 4.425 MB / 362.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005629/0.303, allocations: 2.367 MB / 364.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004598/0.3076, allocations: 3.101 MB / 367.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001265/0.3089, allocations: 468 kB / 368 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.3114, allocations: 0.7417 MB / 368.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001559/0.313, allocations: 1.507 MB / 370.3 MB, free: 6.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005306/0.3183, allocations: 2.978 MB / 373.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01143/0.3297, allocations: 10.15 MB / 383.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.535e-06/0.3298, allocations: 0 / 383.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3298, allocations: 0 / 383.4 MB, free: 9.191 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003154/0.3301, allocations: 4 kB / 383.4 MB, free: 9.188 MB / 318.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.01855/0.3487, allocations: 6.514 MB / 389.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.551e-05/0.3487, allocations: 12.03 kB / 389.9 MB, free: 2.578 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005259/0.354, allocations: 1.048 MB / 391 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00659/0.3606, allocations: 3.338 MB / 394.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002911/0.3609, allocations: 365.7 kB / 394.7 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001127/0.3621, allocations: 487.9 kB / 395.2 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.3756, allocations: 6.857 MB / 402 MB, free: 6.332 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.584e-05/0.3758, allocations: 11.92 kB / 402 MB, free: 6.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004816/0.3763, allocations: 204 kB / 402.2 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002294/0.3765, allocations: 237.8 kB / 402.5 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0109/0.3874, allocations: 5.926 MB / 408.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03447/0.4219, allocations: 20.94 MB / 429.3 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009803/0.4318, allocations: 9.964 MB / 439.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003563/0.4353, allocations: 2.497 MB / 441.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01056/0.4459, allocations: 6.502 MB / 448.3 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.072e-05/0.446, allocations: 56.5 kB / 448.3 MB, free: 6.398 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.957e-06/0.446, allocations: 0 / 448.3 MB, free: 6.398 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.2144/0.6604, allocations: 9.677 MB / 458 MB, free: 107.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.395e-05/0.6605, allocations: 82.03 kB / 458.1 MB, free: 107.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005113/0.6656, allocations: 2.988 MB / 461.1 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003552/0.666, allocations: 63.77 kB / 461.1 MB, free: 106 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001282/0.6673, allocations: 2.162 MB / 463.3 MB, free: 104.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005388/0.6678, allocations: 0.763 MB / 464.1 MB, free: 103.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006848/0.6685, allocations: 470.6 kB / 464.5 MB, free: 103.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.707e-05/0.6686, allocations: 301.1 kB / 464.8 MB, free: 103.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001755/0.6703, allocations: 1.293 MB / 466.1 MB, free: 102.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002131/0.6725, allocations: 1.921 MB / 468 MB, free: 101.6 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003911/0.6764, allocations: 3.348 MB / 471.4 MB, free: 99.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.09e-05/0.6764, allocations: 3.906 kB / 471.4 MB, free: 99.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006136/0.6826, allocations: 4.244 MB / 475.6 MB, free: 97.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.85e-05/0.6826, allocations: 19.55 kB / 475.7 MB, free: 97.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.532e-05/0.6826, allocations: 19.41 kB / 475.7 MB, free: 97.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002436/0.6851, allocations: 0.7624 MB / 476.4 MB, free: 97.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00209/0.6872, allocations: 0.5679 MB / 477 MB, free: 97.26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00815/0.6954, allocations: 10.03 MB / 487 MB, free: 86.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002714/0.6981, allocations: 111.8 kB / 487.1 MB, free: 86.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002007/0.6983, allocations: 103.9 kB / 487.2 MB, free: 86.77 MB / 382.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.003209/0.7015, allocations: 1.609 MB / 488.9 MB, free: 85.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007777/0.7023, allocations: 313.6 kB / 489.2 MB, free: 84.84 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005519/0.7079, allocations: 3.911 MB / 493.1 MB, free: 80.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.319e-05/0.7079, allocations: 24 kB / 493.1 MB, free: 80.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/0.7079, allocations: 15.94 kB / 493.1 MB, free: 80.82 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.7079, allocations: 13.08 kB / 493.1 MB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.7197, allocations: 8.569 MB / 0.4899 GB, free: 72.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.7198, allocations: 256 / 0.4899 GB, free: 72.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/0.7212, allocations: 347.5 kB / 0.4903 GB, free: 71.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002804/0.724, allocations: 0.938 MB / 0.4912 GB, free: 70.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.7242, allocations: 55.98 kB / 0.4912 GB, free: 70.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01138/0.7356, allocations: 14.41 MB / 0.5053 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7356, allocations: 0 / 0.5053 GB, free: 55.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007944/0.7435, allocations: 5.688 MB / 0.5109 GB, free: 49.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001833/0.7454, allocations: 0.6886 MB / 0.5115 GB, free: 49.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004263/0.7458, allocations: 51.98 kB / 0.5116 GB, free: 49.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/0.7473, allocations: 111.9 kB / 0.5117 GB, free: 48.96 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000518/0.7478, allocations: 185.7 kB / 0.5119 GB, free: 48.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/0.7479, allocations: 63.98 kB / 0.5119 GB, free: 48.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002808/0.7508, allocations: 2.062 MB / 0.5139 GB, free: 46.66 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.7508, allocations: 0 / 0.5139 GB, free: 46.66 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003626/0.7544, allocations: 0.9439 MB / 0.5149 GB, free: 45.71 MB / 382.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.000721/0.7551, allocations: 268.4 kB / 0.5151 GB, free: 45.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005185/0.7603, allocations: 3.885 MB / 0.5189 GB, free: 41.51 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/0.7604, allocations: 0 / 0.5189 GB, free: 41.51 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/0.7636, allocations: 2.643 MB / 0.5215 GB, free: 38.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004101/0.7678, allocations: 0.8605 MB / 0.5223 GB, free: 37.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.7839, allocations: 11.58 MB / 0.5336 GB, free: 26.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002663/0.7866, allocations: 3.429 MB / 0.537 GB, free: 22.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002559/0.7892, allocations: 0.7565 MB / 0.5377 GB, free: 22.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005478/0.7897, allocations: 195.4 kB / 0.5379 GB, free: 21.89 MB / 382.1 MB Notification: Performance of SimCode: time 6.72e-07/0.7898, allocations: 3.938 kB / 0.5379 GB, free: 21.89 MB / 382.1 MB Notification: Performance of Templates: time 0.08503/0.8748, allocations: 49.01 MB / 0.5858 GB, free: 4.809 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)