Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001096/0.001096, allocations: 91.86 kB / 16.31 MB, free: 5.672 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.001219/0.001219, allocations: 182.9 kB / 17.21 MB, free: 5.59 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.448/1.448, allocations: 205.4 MB / 223.4 MB, free: 5.551 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.0005011/0.0005012, allocations: 19.98 kB / 280.2 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2997/0.3002, allocations: 47.58 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01306/0.3133, allocations: 11.38 MB / 339.1 MB, free: 8.102 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0101/0.3234, allocations: 4.01 MB / 343.1 MB, free: 4.082 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003239/0.3267, allocations: 63.69 kB / 343.2 MB, free: 4.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.3299, allocations: 0.7689 MB / 344 MB, free: 3.246 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00476/0.3347, allocations: 1.029 MB / 345 MB, free: 2.211 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001721/0.3364, allocations: 327.5 kB / 345.3 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007543/0.344, allocations: 4.828 MB / 350.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005828/0.3498, allocations: 2.518 MB / 352.6 MB, free: 10.47 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003745/0.3536, allocations: 1.564 MB / 354.2 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004406/0.358, allocations: 2.109 MB / 356.3 MB, free: 6.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001522/0.3595, allocations: 244 kB / 356.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00244/0.362, allocations: 311.9 kB / 356.9 MB, free: 6.242 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002102/0.3641, allocations: 1.149 MB / 358 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001829/0.366, allocations: 0.8433 MB / 358.9 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006663/0.3726, allocations: 5.991 MB / 364.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.237e-06/0.3727, allocations: 0 / 364.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3727, allocations: 0 / 364.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000205/0.3729, allocations: 0 / 364.8 MB, free: 14.23 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.009083/0.382, allocations: 3.99 MB / 368.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.382, allocations: 8.031 kB / 368.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001649/0.3837, allocations: 0.4947 MB / 369.3 MB, free: 9.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004344/0.388, allocations: 2.311 MB / 371.7 MB, free: 7.309 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002041/0.3883, allocations: 263 kB / 371.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005485/0.3888, allocations: 351.9 kB / 372.3 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009137/0.398, allocations: 5.009 MB / 377.3 MB, free: 1.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-05/0.3981, allocations: 7.906 kB / 377.3 MB, free: 1.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003273/0.3984, allocations: 143.9 kB / 377.4 MB, free: 1.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001874/0.3986, allocations: 183.1 kB / 377.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007597/0.4062, allocations: 4.291 MB / 381.9 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02585/0.4321, allocations: 14.99 MB / 396.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005226/0.4373, allocations: 4.204 MB / 401.1 MB, free: 9.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003398/0.4408, allocations: 2.007 MB / 403.1 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003373/0.4411, allocations: 135.1 kB / 403.2 MB, free: 7.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.151e-05/0.4412, allocations: 56.5 kB / 403.3 MB, free: 6.961 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 4.638e-06/0.4413, allocations: 4 kB / 403.3 MB, free: 6.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02314/0.4644, allocations: 10.1 MB / 413.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.533e-05/0.4645, allocations: 77.36 kB / 413.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00487/0.4694, allocations: 2.482 MB / 415.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002694/0.4697, allocations: 69.7 kB / 416 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001248/0.4709, allocations: 1.615 MB / 417.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006985/0.4717, allocations: 0.7316 MB / 418.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001611/0.4718, allocations: 48 kB / 418.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.472, allocations: 398.6 kB / 418.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.4742, allocations: 1.308 MB / 420.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002627/0.4768, allocations: 1.779 MB / 421.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002661/0.4795, allocations: 1.56 MB / 423.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.4795, allocations: 4 kB / 423.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.00739/0.4869, allocations: 4.079 MB / 427.5 MB, free: 14.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.362e-05/0.487, allocations: 12 kB / 427.5 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.487, allocations: 12 kB / 427.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/0.4899, allocations: 0.8869 MB / 428.4 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002111/0.4921, allocations: 0.5305 MB / 428.9 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.5027, allocations: 8.735 MB / 437.7 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002465/0.5052, allocations: 127.9 kB / 437.8 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004359/0.5057, allocations: 84 kB / 437.9 MB, free: 3.523 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.003128/0.5088, allocations: 1.215 MB / 439.1 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001184/0.51, allocations: 272.8 kB / 439.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007662/0.5177, allocations: 3.738 MB / 443.1 MB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.498e-05/0.5177, allocations: 20 kB / 443.1 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.573e-05/0.5178, allocations: 8 kB / 443.1 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.509e-05/0.5178, allocations: 11.95 kB / 443.1 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/0.5345, allocations: 8.103 MB / 451.2 MB, free: 6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.5345, allocations: 4 kB / 451.3 MB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001676/0.5362, allocations: 395.5 kB / 451.6 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00313/0.5394, allocations: 0.9213 MB / 452.6 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/0.5396, allocations: 59.97 kB / 452.6 MB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.287/0.8266, allocations: 10.17 MB / 462.8 MB, free: 104.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.8266, allocations: 6.031 kB / 462.8 MB, free: 104.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009506/0.8361, allocations: 5.535 MB / 468.3 MB, free: 102.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001438/0.8376, allocations: 0.6367 MB / 469 MB, free: 102.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003561/0.838, allocations: 51.42 kB / 469 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.8393, allocations: 131.9 kB / 469.1 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004436/0.8397, allocations: 178.5 kB / 469.3 MB, free: 102.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.8399, allocations: 62.22 kB / 469.4 MB, free: 102.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002563/0.8424, allocations: 1.712 MB / 471.1 MB, free: 101.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.8425, allocations: 0 / 471.1 MB, free: 101.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002872/0.8453, allocations: 0.7914 MB / 471.9 MB, free: 101.7 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.0006117/0.846, allocations: 210.5 kB / 472.1 MB, free: 101.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005858/0.8518, allocations: 3.894 MB / 476 MB, free: 99.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.8519, allocations: 3.938 kB / 476 MB, free: 99.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003286/0.8551, allocations: 2.49 MB / 478.5 MB, free: 97.97 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003307/0.8585, allocations: 0.7589 MB / 479.2 MB, free: 97.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.8706, allocations: 9.112 MB / 488.3 MB, free: 88.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002151/0.8728, allocations: 2.768 MB / 491.1 MB, free: 85.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002355/0.8752, allocations: 0.6827 MB / 491.8 MB, free: 84.82 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005107/0.8757, allocations: 171.4 kB / 492 MB, free: 84.65 MB / 382.1 MB Notification: Performance of SimCode: time 1.964e-06/0.8757, allocations: 0 / 492 MB, free: 84.65 MB / 382.1 MB Notification: Performance of Templates: time 0.06293/0.9387, allocations: 42.73 MB / 0.5222 GB, free: 41.88 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)