Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.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.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002031/0.002031, allocations: 195.5 kB / 16.14 MB, free: 6.715 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.637/1.637, allocations: 205.1 MB / 222 MB, free: 4.746 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.002125/0.002125, allocations: 52.39 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2749, allocations: 46.63 MB / 324.7 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01405/0.289, allocations: 12.72 MB / 337.4 MB, free: 7.492 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008678/0.2977, allocations: 4.196 MB / 341.6 MB, free: 3.285 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002424/0.3002, allocations: 59.69 kB / 341.7 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002551/0.3028, allocations: 0.8509 MB / 342.5 MB, free: 2.371 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004234/0.307, allocations: 1.08 MB / 343.6 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001348/0.3084, allocations: 475.6 kB / 344.1 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006304/0.3147, allocations: 5.359 MB / 349.4 MB, free: 11.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003633/0.3184, allocations: 2.969 MB / 352.4 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004464/0.3228, allocations: 1.811 MB / 354.2 MB, free: 6.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004055/0.3269, allocations: 2.455 MB / 356.6 MB, free: 4.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009833/0.3279, allocations: 340 kB / 357 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.3295, allocations: 443.8 kB / 357.4 MB, free: 3.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.3307, allocations: 1.293 MB / 358.7 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002786/0.3335, allocations: 2.228 MB / 360.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007055/0.3406, allocations: 7.15 MB / 368.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3406, allocations: 7.875 kB / 368.1 MB, free: 8.645 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3406, allocations: 4 kB / 368.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002462/0.3409, allocations: 0 / 368.1 MB, free: 8.641 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01149/0.3524, allocations: 4.687 MB / 372.8 MB, free: 3.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.56e-05/0.3524, allocations: 8.031 kB / 372.8 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001436/0.3539, allocations: 0.4956 MB / 373.3 MB, free: 3.379 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003923/0.3578, allocations: 2.376 MB / 375.7 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001913/0.3581, allocations: 267 kB / 375.9 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005113/0.3586, allocations: 359.9 kB / 376.3 MB, free: 348 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008492/0.3671, allocations: 5.021 MB / 381.3 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.373e-05/0.3672, allocations: 7.906 kB / 381.3 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003225/0.3675, allocations: 144 kB / 381.4 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.3677, allocations: 183 kB / 381.6 MB, free: 10.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006916/0.3746, allocations: 4.294 MB / 385.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0247/0.3993, allocations: 14.91 MB / 400.8 MB, free: 7.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004651/0.404, allocations: 4.199 MB / 405 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003257/0.4073, allocations: 1.987 MB / 407 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003119/0.4077, allocations: 139 kB / 407.1 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/0.4077, allocations: 57.03 kB / 407.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 5.571e-06/0.4077, allocations: 0 / 407.2 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02262/0.4304, allocations: 10.02 MB / 417.2 MB, free: 6.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.854e-05/0.4305, allocations: 73.41 kB / 417.3 MB, free: 6.469 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005553/0.436, allocations: 2.513 MB / 419.8 MB, free: 3.934 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000329/0.4364, allocations: 65.7 kB / 419.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.4379, allocations: 1.615 MB / 421.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009089/0.4388, allocations: 0.7277 MB / 422.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009522/0.4398, allocations: 420.2 kB / 422.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4399, allocations: 309.1 kB / 422.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.4422, allocations: 1.297 MB / 424.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002624/0.4448, allocations: 1.775 MB / 426 MB, free: 13.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005111/0.4499, allocations: 3.223 MB / 429.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.858e-05/0.45, allocations: 11.88 kB / 429.2 MB, free: 10.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008072/0.4581, allocations: 4.067 MB / 433.3 MB, free: 5.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.153e-05/0.4581, allocations: 11.98 kB / 433.3 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/0.4582, allocations: 16 kB / 433.3 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003065/0.4612, allocations: 0.8753 MB / 434.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002356/0.4636, allocations: 0.5266 MB / 434.7 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/0.4747, allocations: 8.741 MB / 443.5 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002695/0.4774, allocations: 115.9 kB / 443.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004779/0.4779, allocations: 91.98 kB / 443.7 MB, free: 11.2 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003115/0.481, allocations: 1.212 MB / 444.9 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.4821, allocations: 280.6 kB / 445.2 MB, free: 9.699 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007718/0.4899, allocations: 3.711 MB / 448.9 MB, free: 5.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.992e-05/0.4899, allocations: 24 kB / 448.9 MB, free: 5.93 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.13e-05/0.49, allocations: 11.94 kB / 448.9 MB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.849e-05/0.49, allocations: 15.95 kB / 448.9 MB, free: 5.902 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.272/0.762, allocations: 8.081 MB / 457 MB, free: 109.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.7621, allocations: 2.406 kB / 457 MB, free: 109.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.7637, allocations: 384 kB / 457.4 MB, free: 109.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003232/0.767, allocations: 0.9294 MB / 458.3 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002181/0.7672, allocations: 58.23 kB / 458.4 MB, free: 109.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0103/0.7775, allocations: 10.18 MB / 468.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.7776, allocations: 7.75 kB / 468.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009081/0.7867, allocations: 5.508 MB / 474.1 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/0.7885, allocations: 0.6314 MB / 474.7 MB, free: 99.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009613/0.7895, allocations: 49.53 kB / 474.7 MB, free: 99.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001945/0.7914, allocations: 115.5 kB / 474.8 MB, free: 99.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005207/0.792, allocations: 183.1 kB / 475 MB, free: 99.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001858/0.7922, allocations: 62.91 kB / 475.1 MB, free: 99.64 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002778/0.7949, allocations: 1.732 MB / 476.8 MB, free: 98.68 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.795, allocations: 0 / 476.8 MB, free: 98.68 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003337/0.7983, allocations: 0.7946 MB / 477.6 MB, free: 97.89 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (175): * Single equations (assignments): 170 * 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 {(2,12,100.0%), (1,1,100.0%), (3,25,88.9%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006934/0.799, allocations: 240.2 kB / 477.9 MB, free: 97.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005766/0.8048, allocations: 3.88 MB / 481.7 MB, free: 93.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.8048, allocations: 0 / 481.7 MB, free: 93.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003646/0.8085, allocations: 2.48 MB / 484.2 MB, free: 91.21 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005996/0.8145, allocations: 0.7504 MB / 485 MB, free: 90.47 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.8343, allocations: 9.345 MB / 494.3 MB, free: 81.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004387/0.8388, allocations: 2.773 MB / 497.1 MB, free: 78.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003641/0.8425, allocations: 0.6788 MB / 497.8 MB, free: 77.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001116/0.8436, allocations: 175.4 kB / 497.9 MB, free: 77.48 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.8436, allocations: 0 / 497.9 MB, free: 77.48 MB / 382.1 MB Notification: Performance of Templates: time 0.07411/0.9177, allocations: 44.55 MB / 0.5298 GB, free: 32.87 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)