Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0009611/0.0009657, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.0009587/0.0009587, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.529/1.529, allocations: 205.4 MB / 222.1 MB, free: 5.355 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.0004242/0.0004242, allocations: 10.81 kB / 278.9 MB, free: 12.69 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2661/0.2665, allocations: 47.59 MB / 326.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01307/0.2797, allocations: 11.37 MB / 337.9 MB, free: 8.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01024/0.2899, allocations: 4.014 MB / 341.9 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0031/0.2931, allocations: 63.69 kB / 341.9 MB, free: 4.004 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.2961, allocations: 0.7728 MB / 342.7 MB, free: 3.227 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004841/0.301, allocations: 1.022 MB / 343.7 MB, free: 2.199 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001643/0.3026, allocations: 327.6 kB / 344 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007117/0.3098, allocations: 4.828 MB / 348.9 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005171/0.315, allocations: 2.514 MB / 351.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003702/0.3187, allocations: 1.568 MB / 353 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004799/0.3235, allocations: 2.105 MB / 355.1 MB, free: 6.777 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001282/0.3248, allocations: 244 kB / 355.3 MB, free: 6.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002408/0.3272, allocations: 311.9 kB / 355.6 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.3293, allocations: 1.153 MB / 356.8 MB, free: 5.078 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002069/0.3314, allocations: 0.8394 MB / 357.6 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00692/0.3383, allocations: 5.995 MB / 363.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.3384, allocations: 0 / 363.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3384, allocations: 0 / 363.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002082/0.3386, allocations: 0 / 363.6 MB, free: 14.22 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.008813/0.3474, allocations: 3.997 MB / 367.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.892e-05/0.3475, allocations: 8.031 kB / 367.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001553/0.349, allocations: 0.4908 MB / 368.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00431/0.3534, allocations: 2.314 MB / 370.4 MB, free: 7.289 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002243/0.3536, allocations: 259 kB / 370.7 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005311/0.3542, allocations: 355.9 kB / 371 MB, free: 6.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00892/0.3631, allocations: 5.005 MB / 376 MB, free: 1.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.744e-05/0.3632, allocations: 23.83 kB / 376 MB, free: 1.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000324/0.3635, allocations: 140 kB / 376.2 MB, free: 1.457 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001919/0.3637, allocations: 183.1 kB / 376.3 MB, free: 1.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008092/0.3718, allocations: 4.287 MB / 380.6 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.3979, allocations: 14.99 MB / 395.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004824/0.4028, allocations: 4.204 MB / 399.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/0.406, allocations: 2.002 MB / 401.8 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003251/0.4063, allocations: 143 kB / 402 MB, free: 7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.127e-05/0.4064, allocations: 52.56 kB / 402 MB, free: 6.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.218e-06/0.4064, allocations: 0 / 402 MB, free: 6.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02036/0.4268, allocations: 10.1 MB / 412.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.4269, allocations: 81.36 kB / 412.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004565/0.4314, allocations: 2.486 MB / 414.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003272/0.4318, allocations: 65.7 kB / 414.7 MB, free: 10.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/0.4336, allocations: 1.615 MB / 416.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007137/0.4343, allocations: 0.7277 MB / 417.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.4345, allocations: 48 kB / 417.1 MB, free: 7.648 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002269/0.4347, allocations: 398.6 kB / 417.5 MB, free: 7.254 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/0.4368, allocations: 1.312 MB / 418.8 MB, free: 5.938 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/0.4394, allocations: 1.779 MB / 420.6 MB, free: 3.965 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00235/0.4417, allocations: 1.56 MB / 422.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.4417, allocations: 4 kB / 422.2 MB, free: 2.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007269/0.449, allocations: 4.075 MB / 426.3 MB, free: 14.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.705e-05/0.4491, allocations: 12 kB / 426.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.4491, allocations: 12.47 kB / 426.3 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002783/0.4519, allocations: 0.8865 MB / 427.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002122/0.454, allocations: 0.5305 MB / 427.7 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/0.4645, allocations: 8.738 MB / 436.4 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002582/0.4672, allocations: 119.9 kB / 436.5 MB, free: 3.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002351/0.4674, allocations: 91.98 kB / 436.6 MB, free: 3.5 MB / 366.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 (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 initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003078/0.4705, allocations: 1.215 MB / 437.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007097/0.4712, allocations: 272.7 kB / 438.1 MB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006435/0.4777, allocations: 3.73 MB / 441.9 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/0.4777, allocations: 20 kB / 441.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.4777, allocations: 8 kB / 441.9 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/0.4778, allocations: 11.95 kB / 441.9 MB, free: 14.2 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01407/0.4918, allocations: 8.11 MB / 450 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.4919, allocations: 0 / 450 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/0.4935, allocations: 387.8 kB / 450.4 MB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003056/0.4966, allocations: 0.9294 MB / 451.3 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001844/0.4968, allocations: 55.98 kB / 451.4 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2631/0.7599, allocations: 10.17 MB / 461.5 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.76, allocations: 5.094 kB / 461.5 MB, free: 105.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00862/0.7686, allocations: 5.538 MB / 467.1 MB, free: 103.1 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.7698, allocations: 0.6398 MB / 467.7 MB, free: 102.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003289/0.7702, allocations: 50.88 kB / 467.8 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001193/0.7714, allocations: 129.6 kB / 467.9 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.7717, allocations: 174.3 kB / 468.1 MB, free: 102.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001181/0.7719, allocations: 62.69 kB / 468.1 MB, free: 102.8 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002333/0.7742, allocations: 1.711 MB / 469.8 MB, free: 102.1 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7742, allocations: 0 / 469.8 MB, free: 102.1 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002248/0.7765, allocations: 0.798 MB / 470.6 MB, free: 102 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005415/0.777, allocations: 205.3 kB / 470.8 MB, free: 101.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005198/0.7822, allocations: 3.892 MB / 474.7 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.7822, allocations: 3.844 kB / 474.7 MB, free: 100.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003084/0.7853, allocations: 2.496 MB / 477.2 MB, free: 98.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00353/0.7889, allocations: 0.7631 MB / 478 MB, free: 97.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.8029, allocations: 9.098 MB / 487.1 MB, free: 88.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002316/0.8053, allocations: 2.784 MB / 489.9 MB, free: 85.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002498/0.8078, allocations: 0.6749 MB / 490.6 MB, free: 84.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005179/0.8083, allocations: 175.4 kB / 490.7 MB, free: 84.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.412e-06/0.8084, allocations: 0 / 490.7 MB, free: 84.65 MB / 382.1 MB Notification: Performance of Templates: time 0.06522/0.8736, allocations: 42.72 MB / 0.5209 GB, free: 41.89 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)