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.008638/0.008639, allocations: 95.77 kB / 15.73 MB, free: 6.039 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.001729/0.001729, allocations: 200 kB / 16.68 MB, free: 5.969 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.1 MB / 222.5 MB, free: 4.539 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.001133/0.001133, allocations: 53.36 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1141, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01772/0.132, allocations: 12.83 MB / 386 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01074/0.1428, allocations: 4.246 MB / 390.3 MB, free: 140 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003451/0.1463, allocations: 71.62 kB / 390.4 MB, free: 68 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00389/0.1502, allocations: 0.9664 MB / 391.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00547/0.1557, allocations: 1.173 MB / 392.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002368/0.1581, allocations: 0.5266 MB / 393 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01093/0.1691, allocations: 4.676 MB / 397.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01081/0.1799, allocations: 3.606 MB / 401.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008223/0.1882, allocations: 2.122 MB / 403.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008935/0.1972, allocations: 2.553 MB / 406 MB, free: 332 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003559/0.2008, allocations: 0.5547 MB / 406.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004187/0.205, allocations: 0.6404 MB / 407.2 MB, free: 15.13 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003564/0.2086, allocations: 1.519 MB / 408.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009416/0.2181, allocations: 2.481 MB / 411.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01633/0.2345, allocations: 7.439 MB / 418.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.2345, allocations: 0 / 418.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2345, allocations: 4 kB / 418.6 MB, free: 3.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00034/0.2349, allocations: 0 / 418.6 MB, free: 3.645 MB / 350.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.01745/0.2523, allocations: 4.806 MB / 423.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.925e-05/0.2524, allocations: 8.031 kB / 423.4 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001804/0.2542, allocations: 0.5214 MB / 424 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005543/0.2598, allocations: 2.415 MB / 426.4 MB, free: 11.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000306/0.2601, allocations: 267 kB / 426.6 MB, free: 11.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007005/0.2608, allocations: 351.9 kB / 427 MB, free: 11.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.2743, allocations: 5.021 MB / 432 MB, free: 6.082 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001011/0.2744, allocations: 11.92 kB / 432 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004207/0.2749, allocations: 144 kB / 432.2 MB, free: 5.93 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002346/0.2751, allocations: 179.1 kB / 432.3 MB, free: 5.754 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009457/0.2846, allocations: 4.294 MB / 436.6 MB, free: 1.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03296/0.3176, allocations: 14.76 MB / 451.4 MB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3302/0.6479, allocations: 4.194 MB / 455.6 MB, free: 65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00488/0.6528, allocations: 1.993 MB / 457.6 MB, free: 64.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003436/0.6532, allocations: 136 kB / 457.7 MB, free: 64.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.6532, allocations: 51.72 kB / 457.8 MB, free: 64.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 3.897e-06/0.6532, allocations: 0 / 457.8 MB, free: 64.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02451/0.6777, allocations: 10.08 MB / 467.8 MB, free: 61.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.986e-05/0.6779, allocations: 78.41 kB / 467.9 MB, free: 61.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00672/0.6846, allocations: 2.504 MB / 470.4 MB, free: 60.4 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007375/0.6854, allocations: 62.55 kB / 470.5 MB, free: 60.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001793/0.6872, allocations: 1.653 MB / 472.1 MB, free: 59.26 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/0.6884, allocations: 0.7724 MB / 472.9 MB, free: 58.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008248/0.6893, allocations: 422.8 kB / 473.3 MB, free: 58.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.6894, allocations: 305.1 kB / 473.6 MB, free: 58.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/0.6916, allocations: 1.302 MB / 474.9 MB, free: 57.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002529/0.6942, allocations: 1.78 MB / 476.7 MB, free: 56.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004988/0.6992, allocations: 3.217 MB / 479.9 MB, free: 54.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.542e-05/0.6992, allocations: 6.5 kB / 479.9 MB, free: 54.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007193/0.7064, allocations: 4.085 MB / 484 MB, free: 52.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/0.7065, allocations: 13.12 kB / 484 MB, free: 52.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.396e-05/0.7065, allocations: 12 kB / 484 MB, free: 52.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002257/0.7088, allocations: 0.8215 MB / 484.8 MB, free: 51.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002255/0.7111, allocations: 0.5304 MB / 485.4 MB, free: 50.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009019/0.7201, allocations: 9.487 MB / 494.9 MB, free: 40.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003511/0.7237, allocations: 121.6 kB / 495 MB, free: 40.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004267/0.7241, allocations: 88 kB / 495.1 MB, free: 40.61 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.003084/0.7272, allocations: 1.208 MB / 496.3 MB, free: 39.39 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/0.7284, allocations: 290.2 kB / 496.6 MB, free: 39.11 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006028/0.7344, allocations: 3.719 MB / 0.4886 GB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.624e-05/0.7345, allocations: 24 kB / 0.4886 GB, free: 35.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.181e-05/0.7345, allocations: 5.188 kB / 0.4886 GB, free: 35.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.998e-05/0.7345, allocations: 14.88 kB / 0.4886 GB, free: 35.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01439/0.7489, allocations: 8.025 MB / 0.4964 GB, free: 27.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.749, allocations: 0 / 0.4964 GB, free: 27.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001512/0.7505, allocations: 387.6 kB / 0.4968 GB, free: 26.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002407/0.7529, allocations: 0.8788 MB / 0.4977 GB, free: 25.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001748/0.7531, allocations: 55.97 kB / 0.4977 GB, free: 25.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009759/0.7629, allocations: 11.07 MB / 0.5085 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/0.7629, allocations: 4 kB / 0.5085 GB, free: 14.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009233/0.7722, allocations: 5.526 MB / 0.5139 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002791/0.775, allocations: 0.6514 MB / 0.5146 GB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009362/0.776, allocations: 51.98 kB / 0.5146 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.7777, allocations: 111.9 kB / 0.5147 GB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006137/0.7783, allocations: 184.1 kB / 0.5149 GB, free: 7.684 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001504/0.7785, allocations: 59.98 kB / 0.5149 GB, free: 7.625 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002891/0.7814, allocations: 1.731 MB / 0.5166 GB, free: 5.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7814, allocations: 0 / 0.5166 GB, free: 5.883 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005105/0.7865, allocations: 0.795 MB / 0.5174 GB, free: 5.09 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.001012/0.7876, allocations: 237.4 kB / 0.5176 GB, free: 4.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005902/0.7935, allocations: 3.9 MB / 0.5215 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/0.7935, allocations: 0 / 0.5215 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004348/0.7979, allocations: 2.483 MB / 0.5239 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005104/0.803, allocations: 0.7849 MB / 0.5246 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/0.8225, allocations: 7.824 MB / 0.5323 GB, free: 5.676 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003946/0.8266, allocations: 2.777 MB / 0.535 GB, free: 2.871 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003125/0.8297, allocations: 0.6749 MB / 0.5357 GB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008514/0.8306, allocations: 186.6 kB / 0.5358 GB, free: 2.016 MB / 398.1 MB Notification: Performance of SimCode: time 1.553e-06/0.8306, allocations: 0 / 0.5358 GB, free: 2.016 MB / 398.1 MB Notification: Performance of Templates: time 0.07774/0.9084, allocations: 44.59 MB / 0.5794 GB, free: 5.406 MB / 446.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)