Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008196/0.008195, allocations: 100.7 kB / 15.73 MB, free: 6.5 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.002072/0.002072, allocations: 191.7 kB / 16.67 MB, free: 6.379 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.899/1.899, allocations: 205.1 MB / 222.6 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.001605/0.001605, allocations: 50.19 kB / 326.6 MB, free: 14.3 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1272, allocations: 46.61 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01706/0.1443, allocations: 12.83 MB / 386 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01111/0.1555, allocations: 4.25 MB / 390.3 MB, free: 144 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003287/0.1589, allocations: 63.69 kB / 390.4 MB, free: 80 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00413/0.1631, allocations: 0.982 MB / 391.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006073/0.1692, allocations: 1.169 MB / 392.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002518/0.1717, allocations: 0.5305 MB / 393 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008728/0.1805, allocations: 4.676 MB / 397.7 MB, free: 8.688 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007161/0.1877, allocations: 3.598 MB / 401.3 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005775/0.1935, allocations: 2.135 MB / 403.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006783/0.2003, allocations: 2.549 MB / 406 MB, free: 328 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002599/0.203, allocations: 0.5625 MB / 406.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003782/0.2068, allocations: 0.6405 MB / 407.2 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003407/0.2102, allocations: 1.519 MB / 408.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006814/0.217, allocations: 2.481 MB / 411.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01321/0.2303, allocations: 7.423 MB / 418.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.2304, allocations: 0 / 418.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.2304, allocations: 0 / 418.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003318/0.2307, allocations: 0 / 418.6 MB, free: 3.656 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.01617/0.2469, allocations: 4.683 MB / 423.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.247, allocations: 19.95 kB / 423.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001453/0.2484, allocations: 0.4917 MB / 423.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00529/0.2537, allocations: 2.4 MB / 426.2 MB, free: 11.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002156/0.254, allocations: 274.9 kB / 426.5 MB, free: 11.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006031/0.2546, allocations: 347.9 kB / 426.8 MB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009906/0.2645, allocations: 5.025 MB / 431.8 MB, free: 6.242 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.907e-05/0.2646, allocations: 8 kB / 431.9 MB, free: 6.234 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003527/0.265, allocations: 144 kB / 432 MB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001757/0.2652, allocations: 179.1 kB / 432.2 MB, free: 5.918 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007975/0.2731, allocations: 4.287 MB / 436.5 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02799/0.3012, allocations: 14.73 MB / 451.2 MB, free: 2.562 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2528/0.554, allocations: 4.188 MB / 455.4 MB, free: 65.18 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004609/0.5587, allocations: 1.989 MB / 457.4 MB, free: 65.16 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003252/0.559, allocations: 137.1 kB / 457.5 MB, free: 65.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.5591, allocations: 58.98 kB / 457.6 MB, free: 65.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 4.559e-06/0.5591, allocations: 0 / 457.6 MB, free: 65.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02221/0.5813, allocations: 10.01 MB / 467.6 MB, free: 61.59 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.056e-05/0.5814, allocations: 75.69 kB / 467.6 MB, free: 61.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004407/0.5858, allocations: 2.506 MB / 470.1 MB, free: 60.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003913/0.5863, allocations: 73.23 kB / 470.2 MB, free: 60.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001099/0.5874, allocations: 1.615 MB / 471.8 MB, free: 59.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006689/0.588, allocations: 0.7271 MB / 472.6 MB, free: 58.73 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006168/0.5887, allocations: 423 kB / 473 MB, free: 58.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.5887, allocations: 305.1 kB / 473.3 MB, free: 58.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/0.5905, allocations: 1.299 MB / 474.6 MB, free: 57.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001973/0.5925, allocations: 1.779 MB / 476.4 MB, free: 56.69 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003953/0.5965, allocations: 3.216 MB / 479.6 MB, free: 54.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.968e-05/0.5965, allocations: 4.688 kB / 479.6 MB, free: 54.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007702/0.6042, allocations: 4.077 MB / 483.6 MB, free: 52.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.997e-05/0.6043, allocations: 13.09 kB / 483.7 MB, free: 52.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.6044, allocations: 12 kB / 483.7 MB, free: 52.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002181/0.6065, allocations: 0.822 MB / 484.5 MB, free: 51.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.6087, allocations: 0.5304 MB / 485 MB, free: 50.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008078/0.6168, allocations: 9.476 MB / 494.5 MB, free: 40.89 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/0.6193, allocations: 123.9 kB / 494.6 MB, free: 40.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003026/0.6197, allocations: 88 kB / 494.7 MB, free: 40.68 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.002291/0.622, allocations: 1.208 MB / 495.9 MB, free: 39.46 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008267/0.6228, allocations: 280.7 kB / 496.2 MB, free: 39.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005496/0.6283, allocations: 3.715 MB / 499.9 MB, free: 35.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.6284, allocations: 26.72 kB / 499.9 MB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.39e-05/0.6284, allocations: 8 kB / 499.9 MB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.032e-05/0.6284, allocations: 7.969 kB / 499.9 MB, free: 35.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01373/0.6421, allocations: 8.023 MB / 0.4961 GB, free: 27.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/0.6422, allocations: 0 / 0.4961 GB, free: 27.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.6437, allocations: 383.8 kB / 0.4964 GB, free: 26.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002574/0.6463, allocations: 0.8726 MB / 0.4973 GB, free: 26.05 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001636/0.6465, allocations: 55.97 kB / 0.4973 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009091/0.6556, allocations: 11.06 MB / 0.5081 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.6557, allocations: 4 kB / 0.5081 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00767/0.6633, allocations: 5.506 MB / 0.5135 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002065/0.6654, allocations: 0.6343 MB / 0.5141 GB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005936/0.6661, allocations: 51.98 kB / 0.5142 GB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001406/0.6675, allocations: 119.2 kB / 0.5143 GB, free: 7.996 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003987/0.6679, allocations: 181.7 kB / 0.5145 GB, free: 7.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.668, allocations: 63.98 kB / 0.5145 GB, free: 7.758 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002233/0.6703, allocations: 1.727 MB / 0.5162 GB, free: 6.02 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6703, allocations: 0 / 0.5162 GB, free: 6.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002771/0.673, allocations: 0.7955 MB / 0.517 GB, free: 5.227 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.0006144/0.6737, allocations: 249.8 kB / 0.5172 GB, free: 4.992 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005543/0.6792, allocations: 3.899 MB / 0.521 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.6793, allocations: 0 / 0.521 GB, free: 1.012 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003944/0.6832, allocations: 2.474 MB / 0.5235 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005047/0.6883, allocations: 0.785 MB / 0.5242 GB, free: 13.69 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/0.7051, allocations: 7.707 MB / 0.5318 GB, free: 5.945 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003652/0.7088, allocations: 2.78 MB / 0.5345 GB, free: 3.141 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002848/0.7117, allocations: 0.6856 MB / 0.5351 GB, free: 2.453 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007221/0.7125, allocations: 175.4 kB / 0.5353 GB, free: 2.285 MB / 398.1 MB Notification: Performance of SimCode: time 1.343e-06/0.7125, allocations: 0 / 0.5353 GB, free: 2.285 MB / 398.1 MB Notification: Performance of Templates: time 0.1279/0.8404, allocations: 45.32 MB / 0.5796 GB, free: 4.965 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1)