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.01009/0.01009, allocations: 101.5 kB / 15.73 MB, free: 5.59 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.001709/0.001709, allocations: 189.6 kB / 16.67 MB, free: 5.523 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.878/1.878, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001406/0.001406, allocations: 51.92 kB / 326.6 MB, free: 3.246 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09293, allocations: 46.61 MB / 373.2 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.2652/0.3582, allocations: 12.83 MB / 386 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009874/0.3681, allocations: 4.248 MB / 390.3 MB, free: 3.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003691/0.3719, allocations: 68.16 kB / 390.3 MB, free: 3.145 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003885/0.3758, allocations: 1.01 MB / 391.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006626/0.3825, allocations: 1.232 MB / 392.6 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002119/0.3846, allocations: 0.5241 MB / 393.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008866/0.3935, allocations: 4.676 MB / 397.8 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007777/0.4013, allocations: 3.6 MB / 401.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005833/0.4072, allocations: 2.124 MB / 403.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006335/0.4135, allocations: 2.559 MB / 406.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00234/0.4159, allocations: 0.5518 MB / 406.6 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004018/0.4199, allocations: 0.6444 MB / 407.3 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004413/0.4244, allocations: 1.525 MB / 408.8 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006969/0.4314, allocations: 2.484 MB / 411.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01218/0.4436, allocations: 7.423 MB / 418.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.4436, allocations: 0 / 418.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.4437, allocations: 0 / 418.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003212/0.444, allocations: 0 / 418.7 MB, free: 2.051 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.02065/0.4646, allocations: 4.691 MB / 423.4 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001157/0.4648, allocations: 12.03 kB / 423.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003493/0.4683, allocations: 0.4917 MB / 423.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007604/0.4759, allocations: 2.404 MB / 426.3 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004071/0.4764, allocations: 270.9 kB / 426.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001847/0.4782, allocations: 359.9 kB / 426.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01524/0.4935, allocations: 5.013 MB / 431.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001618/0.4937, allocations: 0 / 431.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000983/0.4947, allocations: 148 kB / 432.1 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/0.495, allocations: 195 kB / 432.3 MB, free: 4.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009674/0.5046, allocations: 4.291 MB / 436.6 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0336/0.5383, allocations: 14.72 MB / 451.3 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006357/0.5447, allocations: 4.195 MB / 455.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003807/0.5486, allocations: 1.991 MB / 457.5 MB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004562/0.5491, allocations: 135.1 kB / 457.6 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.129e-05/0.5492, allocations: 56.5 kB / 457.7 MB, free: 10.25 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 6.742e-06/0.5492, allocations: 0 / 457.7 MB, free: 10.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02517/0.5744, allocations: 10.02 MB / 467.7 MB, free: 128 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.5745, allocations: 77.41 kB / 467.7 MB, free: 36 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00567/0.5802, allocations: 2.502 MB / 470.2 MB, free: 13.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003296/0.5805, allocations: 65.7 kB / 470.3 MB, free: 13.44 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001505/0.5821, allocations: 1.623 MB / 471.9 MB, free: 11.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008083/0.5829, allocations: 0.7354 MB / 472.7 MB, free: 11.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008944/0.5838, allocations: 416.3 kB / 473.1 MB, free: 10.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.5839, allocations: 305.1 kB / 473.4 MB, free: 10.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.5862, allocations: 1.301 MB / 474.7 MB, free: 9.031 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002714/0.589, allocations: 1.775 MB / 476.4 MB, free: 7.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00485/0.5938, allocations: 3.219 MB / 479.7 MB, free: 3.672 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.931e-05/0.5939, allocations: 4 kB / 479.7 MB, free: 3.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008079/0.6019, allocations: 4.079 MB / 483.7 MB, free: 15.56 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.011e-05/0.602, allocations: 8 kB / 483.8 MB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-05/0.6021, allocations: 19.98 kB / 483.8 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002592/0.6047, allocations: 0.8245 MB / 484.6 MB, free: 14.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/0.6071, allocations: 0.5188 MB / 485.1 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.013/0.6201, allocations: 9.482 MB / 494.6 MB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003088/0.6232, allocations: 119.9 kB / 494.7 MB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006803/0.6239, allocations: 87.98 kB / 494.8 MB, free: 4.062 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.004304/0.6283, allocations: 1.219 MB / 496 MB, free: 2.832 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001507/0.6298, allocations: 276.6 kB / 496.3 MB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01011/0.6399, allocations: 3.719 MB / 0.4883 GB, free: 14.81 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/0.64, allocations: 20 kB / 0.4883 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.883e-05/0.64, allocations: 8 kB / 0.4883 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.767e-05/0.64, allocations: 11.95 kB / 0.4883 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02068/0.6607, allocations: 8.013 MB / 0.4962 GB, free: 6.637 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/0.6608, allocations: 4 kB / 0.4962 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001735/0.6625, allocations: 391.8 kB / 0.4965 GB, free: 6.25 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002816/0.6654, allocations: 0.8628 MB / 0.4974 GB, free: 5.371 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002698/0.6657, allocations: 59.97 kB / 0.4974 GB, free: 5.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0122/0.6779, allocations: 11.06 MB / 0.5082 GB, free: 9.688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.6779, allocations: 4.094 kB / 0.5082 GB, free: 9.684 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009768/0.6877, allocations: 5.512 MB / 0.5136 GB, free: 4.102 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002122/0.6898, allocations: 0.6304 MB / 0.5142 GB, free: 3.449 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/0.6909, allocations: 51.98 kB / 0.5143 GB, free: 3.398 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/0.693, allocations: 123.8 kB / 0.5144 GB, free: 3.277 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004901/0.6936, allocations: 181.8 kB / 0.5146 GB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000187/0.6938, allocations: 59.98 kB / 0.5146 GB, free: 3.039 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003645/0.6974, allocations: 1.723 MB / 0.5163 GB, free: 1.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6974, allocations: 0 / 0.5163 GB, free: 1.305 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003834/0.7013, allocations: 0.8047 MB / 0.5171 GB, free: 0.5 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.0009061/0.7022, allocations: 237.5 kB / 0.5173 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007042/0.7092, allocations: 3.899 MB / 0.5211 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/0.7093, allocations: 4 kB / 0.5211 GB, free: 12.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004487/0.7138, allocations: 2.485 MB / 0.5236 GB, free: 9.715 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005521/0.7193, allocations: 0.7785 MB / 0.5243 GB, free: 8.934 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0188/0.7381, allocations: 7.706 MB / 0.5319 GB, free: 1.176 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005099/0.7433, allocations: 2.769 MB / 0.5346 GB, free: 14.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003325/0.7467, allocations: 0.6788 MB / 0.5352 GB, free: 13.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001292/0.748, allocations: 179.4 kB / 0.5354 GB, free: 13.52 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/0.748, allocations: 0 / 0.5354 GB, free: 13.52 MB / 478.1 MB Notification: Performance of Templates: time 0.3515/1.1, allocations: 44.59 MB / 0.5789 GB, free: 137.8 MB / 478.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)