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.001694/0.001694, allocations: 110.8 kB / 16.62 MB, free: 6.953 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.001779/0.001779, allocations: 193.9 kB / 17.55 MB, free: 6.043 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.813/1.813, allocations: 205.1 MB / 223.4 MB, free: 12.45 MB / 190.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.001305/0.001305, allocations: 51.92 kB / 279.5 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1265, allocations: 46.62 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01463/0.1412, allocations: 12.71 MB / 338.9 MB, free: 8.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009704/0.151, allocations: 4.196 MB / 343 MB, free: 3.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002511/0.1536, allocations: 59.69 kB / 343.1 MB, free: 3.734 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002686/0.1563, allocations: 0.8509 MB / 344 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004048/0.1603, allocations: 1.08 MB / 345 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001285/0.1616, allocations: 471.6 kB / 345.5 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006218/0.1679, allocations: 4.669 MB / 350.2 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004263/0.1721, allocations: 3.602 MB / 353.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004639/0.1768, allocations: 2.136 MB / 355.9 MB, free: 6.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00479/0.1816, allocations: 2.616 MB / 358.5 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001231/0.1829, allocations: 0.5508 MB / 359.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001862/0.1847, allocations: 0.6483 MB / 359.7 MB, free: 3.016 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001493/0.1862, allocations: 1.523 MB / 361.2 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003934/0.1902, allocations: 2.481 MB / 363.7 MB, free: 15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008307/0.1985, allocations: 7.353 MB / 371.1 MB, free: 7.621 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1985, allocations: 3.938 kB / 371.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1986, allocations: 0 / 371.1 MB, free: 7.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.1988, allocations: 0 / 371.1 MB, free: 7.617 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01282/0.2116, allocations: 4.687 MB / 375.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.155e-05/0.2117, allocations: 8.031 kB / 375.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.2133, allocations: 0.4955 MB / 376.3 MB, free: 2.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2123/0.4256, allocations: 2.376 MB / 378.6 MB, free: 48.78 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000388/0.426, allocations: 267 kB / 378.9 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00156/0.4276, allocations: 350.8 kB / 379.3 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01073/0.4383, allocations: 5.018 MB / 384.3 MB, free: 47.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.532e-05/0.4385, allocations: 14.7 kB / 384.3 MB, free: 47.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003897/0.4389, allocations: 145.1 kB / 384.4 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003276/0.4392, allocations: 184.8 kB / 384.6 MB, free: 47.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01082/0.45, allocations: 4.294 MB / 388.9 MB, free: 45.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02414/0.4742, allocations: 14.9 MB / 403.8 MB, free: 35.72 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003218/0.4775, allocations: 4.195 MB / 408 MB, free: 31.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002329/0.4798, allocations: 1.997 MB / 410 MB, free: 29.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002554/0.4801, allocations: 127.1 kB / 410.1 MB, free: 29.18 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.35e-05/0.4801, allocations: 64.44 kB / 410.2 MB, free: 29.1 MB / 318.1 MB Notification: Performance of pre-optimization done (n=198): time 4.187e-06/0.4802, allocations: 0 / 410.2 MB, free: 29.1 MB / 318.1 MB Notification: Performance of matching and sorting (n=218): time 0.01567/0.4958, allocations: 10.02 MB / 420.2 MB, free: 18.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.4959, allocations: 73.41 kB / 420.3 MB, free: 18.9 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002814/0.4987, allocations: 2.506 MB / 422.8 MB, free: 16.37 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001422/0.4989, allocations: 61.7 kB / 422.8 MB, free: 16.3 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007559/0.4996, allocations: 1.626 MB / 424.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003891/0.5, allocations: 0.7266 MB / 425.2 MB, free: 13.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005372/0.5006, allocations: 416.3 kB / 425.6 MB, free: 13.53 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.222e-05/0.5006, allocations: 312 kB / 425.9 MB, free: 13.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001514/0.5021, allocations: 1.301 MB / 427.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.5038, allocations: 1.779 MB / 429 MB, free: 9.953 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003233/0.507, allocations: 3.22 MB / 432.2 MB, free: 6.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.507, allocations: 8 kB / 432.2 MB, free: 6.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.005724/0.5128, allocations: 4.072 MB / 436.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/0.5128, allocations: 12 kB / 436.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.5128, allocations: 12 kB / 436.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002505/0.5153, allocations: 0.8862 MB / 437.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.5172, allocations: 0.5304 MB / 437.7 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.5273, allocations: 9.477 MB / 447.2 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003553/0.5309, allocations: 115.9 kB / 447.3 MB, free: 6.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003267/0.5313, allocations: 87.98 kB / 447.4 MB, free: 6.91 MB / 334.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.002443/0.5337, allocations: 1.227 MB / 448.6 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005923/0.5343, allocations: 272.7 kB / 448.9 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00614/0.5405, allocations: 3.715 MB / 452.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-05/0.5405, allocations: 27.94 kB / 452.6 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/0.5405, allocations: 8 kB / 452.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/0.5406, allocations: 11.95 kB / 452.7 MB, free: 1.609 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01367/0.5542, allocations: 8.09 MB / 460.7 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.5543, allocations: 4 kB / 460.7 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.556, allocations: 387.8 kB / 461.1 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003057/0.5591, allocations: 0.9252 MB / 462.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/0.5592, allocations: 55.97 kB / 462.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01143/0.5707, allocations: 11.06 MB / 473.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.5707, allocations: 8.062 kB / 473.2 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009296/0.58, allocations: 5.51 MB / 478.7 MB, free: 6.898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002066/0.5821, allocations: 0.6382 MB / 479.3 MB, free: 6.238 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005083/0.5827, allocations: 51.98 kB / 479.4 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001408/0.5841, allocations: 115.9 kB / 479.5 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004668/0.5846, allocations: 181.7 kB / 479.7 MB, free: 5.895 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001429/0.5847, allocations: 55.98 kB / 479.7 MB, free: 5.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00267/0.5874, allocations: 1.734 MB / 481.4 MB, free: 4.094 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5874, allocations: 0 / 481.4 MB, free: 4.094 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002615/0.59, allocations: 0.7957 MB / 482.2 MB, free: 3.301 MB / 366.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.0006552/0.5907, allocations: 250 kB / 482.5 MB, free: 3.059 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01068/0.6014, allocations: 5.705 MB / 488.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.674e-06/0.6014, allocations: 0 / 488.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003814/0.6052, allocations: 2.477 MB / 490.7 MB, free: 10.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/0.6091, allocations: 0.7969 MB / 491.5 MB, free: 9.949 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0149/0.624, allocations: 9.341 MB / 0.4891 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002741/0.6268, allocations: 2.773 MB / 0.4918 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002527/0.6294, allocations: 0.6788 MB / 0.4924 GB, free: 13.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005773/0.6299, allocations: 183.4 kB / 0.4926 GB, free: 12.9 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.63, allocations: 0 / 0.4926 GB, free: 12.9 MB / 398.1 MB Notification: Performance of Templates: time 0.2923/0.9223, allocations: 46.22 MB / 0.5378 GB, free: 146.3 MB / 430.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)