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.0008774/0.0008775, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007138/0.007138, allocations: 169.8 kB / 16.26 MB, free: 6.676 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.957/1.957, allocations: 205.4 MB / 222.4 MB, free: 5.801 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.0004804/0.0004803, allocations: 12 kB / 279.5 MB, free: 12.74 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3412/0.3417, allocations: 47.57 MB / 327 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01532/0.3571, allocations: 12.11 MB / 339.1 MB, free: 7.262 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01171/0.3689, allocations: 4.169 MB / 343.3 MB, free: 3.082 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00326/0.3722, allocations: 59.69 kB / 343.4 MB, free: 3.023 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003438/0.3757, allocations: 0.8431 MB / 344.2 MB, free: 2.176 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006852/0.3825, allocations: 1.08 MB / 345.3 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002556/0.3851, allocations: 483.5 kB / 345.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.009921/0.3951, allocations: 5.343 MB / 351.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005347/0.4005, allocations: 2.942 MB / 354 MB, free: 8.242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005882/0.4064, allocations: 1.596 MB / 355.6 MB, free: 6.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006015/0.4124, allocations: 2.182 MB / 357.8 MB, free: 4.453 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001448/0.4139, allocations: 248 kB / 358.1 MB, free: 4.211 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002363/0.4163, allocations: 347.8 kB / 358.4 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001569/0.4179, allocations: 1.145 MB / 359.6 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004981/0.4229, allocations: 2.089 MB / 361.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.4332, allocations: 6.933 MB / 368.6 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.4333, allocations: 8 kB / 368.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.778e-06/0.4333, allocations: 0 / 368.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0003272/0.4336, allocations: 0 / 368.6 MB, free: 9.652 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.01207/0.4457, allocations: 3.955 MB / 372.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.459e-05/0.4458, allocations: 8.031 kB / 372.5 MB, free: 5.625 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/0.448, allocations: 0.4956 MB / 373 MB, free: 5.125 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005128/0.4532, allocations: 2.38 MB / 375.4 MB, free: 2.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002508/0.4534, allocations: 271 kB / 375.7 MB, free: 2.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008958/0.4543, allocations: 347.9 kB / 376 MB, free: 2.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.4655, allocations: 5.04 MB / 381.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001071/0.4656, allocations: 4 kB / 381.1 MB, free: 12.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004059/0.466, allocations: 144 kB / 381.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000183/0.4662, allocations: 183 kB / 381.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009462/0.4757, allocations: 4.314 MB / 385.7 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03031/0.506, allocations: 15 MB / 400.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005151/0.5112, allocations: 4.211 MB / 404.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/0.5146, allocations: 2.01 MB / 406.9 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002682/0.5149, allocations: 135 kB / 407.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.515, allocations: 56.56 kB / 407.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 3.417e-06/0.515, allocations: 0 / 407.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.02231/0.5373, allocations: 10.13 MB / 417.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.153e-05/0.5374, allocations: 73.41 kB / 417.3 MB, free: 7.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/0.5418, allocations: 2.506 MB / 419.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003173/0.5422, allocations: 61.7 kB / 419.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.5435, allocations: 1.623 MB / 421.5 MB, free: 3.707 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007813/0.5443, allocations: 0.7355 MB / 422.2 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.5446, allocations: 194.3 kB / 422.4 MB, free: 2.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.5447, allocations: 301.1 kB / 422.7 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/0.5469, allocations: 1.316 MB / 424 MB, free: 1.148 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002433/0.5494, allocations: 1.794 MB / 425.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004707/0.5541, allocations: 3.239 MB / 429.1 MB, free: 11.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.144e-05/0.5542, allocations: 11.94 kB / 429.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007454/0.5616, allocations: 4.099 MB / 433.2 MB, free: 7.605 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.5617, allocations: 12 kB / 433.2 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.721e-05/0.5617, allocations: 12 kB / 433.2 MB, free: 7.582 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003068/0.5648, allocations: 0.8751 MB / 434.1 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002312/0.5671, allocations: 0.5304 MB / 434.6 MB, free: 6.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.5777, allocations: 8.756 MB / 443.4 MB, free: 13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002416/0.5801, allocations: 120 kB / 443.5 MB, free: 12.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002632/0.5804, allocations: 91.98 kB / 443.6 MB, free: 12.8 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.002807/0.5832, allocations: 1.212 MB / 444.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007179/0.584, allocations: 276.7 kB / 445.1 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006932/0.5909, allocations: 3.738 MB / 448.8 MB, free: 7.527 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-05/0.591, allocations: 20 kB / 448.8 MB, free: 7.508 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/0.591, allocations: 15.94 kB / 448.8 MB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.021e-05/0.591, allocations: 11.95 kB / 448.8 MB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2301/0.8211, allocations: 8.106 MB / 456.9 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.947e-05/0.8212, allocations: 6.312 kB / 457 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002444/0.8236, allocations: 390.7 kB / 457.3 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003646/0.8273, allocations: 0.9291 MB / 458.3 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004739/0.8278, allocations: 61.62 kB / 458.3 MB, free: 108.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01168/0.8395, allocations: 10.2 MB / 468.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.8395, allocations: 7.594 kB / 468.5 MB, free: 101.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008873/0.8484, allocations: 5.547 MB / 474.1 MB, free: 99.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001772/0.8502, allocations: 0.6352 MB / 474.7 MB, free: 99.39 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006081/0.8509, allocations: 51.47 kB / 474.8 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00158/0.8525, allocations: 130.8 kB / 474.9 MB, free: 99.32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000456/0.8529, allocations: 183.5 kB / 475.1 MB, free: 99.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.8531, allocations: 55.3 kB / 475.1 MB, free: 99.28 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002578/0.8557, allocations: 1.73 MB / 476.9 MB, free: 98.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.8557, allocations: 0 / 476.9 MB, free: 98.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003245/0.8589, allocations: 0.8015 MB / 477.7 MB, free: 98.52 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.0006651/0.8596, allocations: 237.7 kB / 477.9 MB, free: 98.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005544/0.8652, allocations: 3.913 MB / 481.8 MB, free: 94.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.8652, allocations: 0 / 481.8 MB, free: 94.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003532/0.8687, allocations: 2.489 MB / 484.3 MB, free: 92.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005485/0.8742, allocations: 0.7437 MB / 485 MB, free: 91.35 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/0.8877, allocations: 9.525 MB / 494.6 MB, free: 81.79 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00231/0.8901, allocations: 2.769 MB / 497.3 MB, free: 78.99 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002397/0.8925, allocations: 0.6788 MB / 498 MB, free: 78.31 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005857/0.8931, allocations: 175.4 kB / 498.2 MB, free: 78.14 MB / 382.1 MB Notification: Performance of SimCode: time 1.423e-06/0.8931, allocations: 0 / 498.2 MB, free: 78.14 MB / 382.1 MB Notification: Performance of Templates: time 0.07465/0.9678, allocations: 43.87 MB / 0.5293 GB, free: 34.22 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)