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.001457/0.001458, allocations: 106.5 kB / 17.06 MB, free: 6.016 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.001399/0.001399, allocations: 195 kB / 18 MB, free: 5.094 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.8/1.8, allocations: 205.1 MB / 223.9 MB, free: 12.29 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.001385/0.001385, allocations: 47.92 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1019, allocations: 46.62 MB / 374.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.3034/0.4054, allocations: 12.81 MB / 387.4 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01433/0.4198, allocations: 4.251 MB / 391.6 MB, free: 3.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005885/0.4258, allocations: 71.53 kB / 391.7 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005627/0.4315, allocations: 0.9683 MB / 392.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007724/0.4392, allocations: 1.182 MB / 393.8 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.4414, allocations: 0.5261 MB / 394.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009551/0.451, allocations: 4.667 MB / 399 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005742/0.4568, allocations: 3.601 MB / 402.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007084/0.4639, allocations: 2.136 MB / 404.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00699/0.4709, allocations: 2.558 MB / 407.3 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003239/0.4742, allocations: 0.5567 MB / 407.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00481/0.479, allocations: 0.641 MB / 408.5 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004311/0.4834, allocations: 1.529 MB / 410 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009508/0.4929, allocations: 2.478 MB / 412.5 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01813/0.5111, allocations: 7.425 MB / 419.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.408e-05/0.5112, allocations: 0 / 419.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.309e-06/0.5112, allocations: 0 / 419.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004283/0.5117, allocations: 0 / 419.9 MB, free: 2.121 MB / 334.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.02042/0.5321, allocations: 4.691 MB / 424.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.184e-05/0.5322, allocations: 11.97 kB / 424.6 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0023/0.5345, allocations: 0.4917 MB / 425.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006813/0.5414, allocations: 2.396 MB / 427.5 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000283/0.5417, allocations: 276.1 kB / 427.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009464/0.5426, allocations: 359.9 kB / 428.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01282/0.5555, allocations: 5.017 MB / 433.2 MB, free: 4.707 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.6e-05/0.5556, allocations: 4 kB / 433.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003453/0.556, allocations: 144 kB / 433.3 MB, free: 4.562 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001857/0.5562, allocations: 183 kB / 433.5 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009167/0.5653, allocations: 4.298 MB / 437.8 MB, free: 80 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0339/0.5993, allocations: 14.72 MB / 452.5 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005756/0.6051, allocations: 4.196 MB / 456.7 MB, free: 12.53 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003432/0.6086, allocations: 1.991 MB / 458.7 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000351/0.6089, allocations: 139 kB / 458.8 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.609, allocations: 56.56 kB / 458.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 4.187e-06/0.609, allocations: 0 / 458.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02224/0.6313, allocations: 10.02 MB / 468.9 MB, free: 200 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.6313, allocations: 73.41 kB / 469 MB, free: 112 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004091/0.6354, allocations: 2.502 MB / 471.5 MB, free: 13.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003024/0.6358, allocations: 69.7 kB / 471.6 MB, free: 13.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001206/0.637, allocations: 1.615 MB / 473.2 MB, free: 11.88 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006911/0.6377, allocations: 0.7354 MB / 473.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007025/0.6384, allocations: 412.3 kB / 474.3 MB, free: 10.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.6385, allocations: 309.1 kB / 474.6 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/0.6408, allocations: 1.297 MB / 475.9 MB, free: 9.113 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002513/0.6433, allocations: 1.778 MB / 477.7 MB, free: 7.148 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004658/0.648, allocations: 3.219 MB / 480.9 MB, free: 3.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/0.648, allocations: 4 kB / 480.9 MB, free: 3.746 MB / 398.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007479/0.6555, allocations: 4.079 MB / 485 MB, free: 15.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.393e-05/0.6555, allocations: 15.98 kB / 485 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.959e-05/0.6556, allocations: 12 kB / 485 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002449/0.658, allocations: 0.8127 MB / 485.8 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002482/0.6605, allocations: 0.5266 MB / 486.3 MB, free: 14.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/0.6729, allocations: 9.491 MB / 495.8 MB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003515/0.6765, allocations: 115.9 kB / 496 MB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004392/0.677, allocations: 91.98 kB / 496 MB, free: 4.137 MB / 414.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.003311/0.6803, allocations: 1.208 MB / 497.3 MB, free: 2.918 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008676/0.6812, allocations: 276.7 kB / 497.5 MB, free: 2.645 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006897/0.6881, allocations: 3.715 MB / 0.4895 GB, free: 14.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.19e-05/0.6882, allocations: 24 kB / 0.4895 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.6882, allocations: 4 kB / 0.4895 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.069e-05/0.6882, allocations: 15.95 kB / 0.4895 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01591/0.7041, allocations: 8.025 MB / 0.4974 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.7042, allocations: 0 / 0.4974 GB, free: 6.711 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/0.7058, allocations: 387.8 kB / 0.4977 GB, free: 6.332 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002697/0.7085, allocations: 0.8749 MB / 0.4986 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002241/0.7088, allocations: 55.97 kB / 0.4986 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01294/0.7217, allocations: 11.06 MB / 0.5094 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.7218, allocations: 7.938 kB / 0.5095 GB, free: 9.758 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/0.732, allocations: 5.504 MB / 0.5148 GB, free: 4.184 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002376/0.7344, allocations: 0.6343 MB / 0.5154 GB, free: 3.527 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005334/0.7349, allocations: 51.98 kB / 0.5155 GB, free: 3.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001415/0.7363, allocations: 119.8 kB / 0.5156 GB, free: 3.359 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005398/0.7369, allocations: 174 kB / 0.5158 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.7371, allocations: 71.92 kB / 0.5158 GB, free: 3.117 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003173/0.7403, allocations: 1.73 MB / 0.5175 GB, free: 1.375 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7403, allocations: 0 / 0.5175 GB, free: 1.375 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004011/0.7443, allocations: 0.7969 MB / 0.5183 GB, free: 0.5781 MB / 446.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.0007316/0.745, allocations: 224.2 kB / 0.5185 GB, free: 356 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006968/0.752, allocations: 3.903 MB / 0.5223 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.7521, allocations: 0 / 0.5223 GB, free: 12.37 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004461/0.7565, allocations: 2.488 MB / 0.5248 GB, free: 9.805 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004459/0.761, allocations: 0.7943 MB / 0.5255 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01652/0.7776, allocations: 7.695 MB / 0.5331 GB, free: 1.258 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.7809, allocations: 2.769 MB / 0.5358 GB, free: 14.46 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003164/0.7841, allocations: 0.6827 MB / 0.5364 GB, free: 13.77 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008409/0.785, allocations: 175.4 kB / 0.5366 GB, free: 13.6 MB / 478.1 MB Notification: Performance of SimCode: time 9.82e-07/0.785, allocations: 3.938 kB / 0.5366 GB, free: 13.6 MB / 478.1 MB Notification: Performance of Templates: time 0.3781/1.163, allocations: 45.3 MB / 0.5808 GB, free: 136.5 MB / 478.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)