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.01087/0.01087, allocations: 100.8 kB / 15.73 MB, free: 6.055 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.001881/0.001882, allocations: 197.2 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.883/1.883, allocations: 205.1 MB / 222.6 MB, free: 4.301 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.001142/0.001142, allocations: 49.61 kB / 326.6 MB, free: 14.55 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.1188, allocations: 46.62 MB / 373.2 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.02469/0.1435, allocations: 12.83 MB / 386 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01462/0.1582, allocations: 4.249 MB / 390.3 MB, free: 220 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005018/0.1634, allocations: 67.69 kB / 390.4 MB, free: 152 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005729/0.1691, allocations: 1.013 MB / 391.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008649/0.1778, allocations: 1.231 MB / 392.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.1806, allocations: 0.5228 MB / 393.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.1912, allocations: 4.676 MB / 397.8 MB, free: 8.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00801/0.1993, allocations: 3.602 MB / 401.4 MB, free: 5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006323/0.2057, allocations: 2.134 MB / 403.5 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005242/0.2109, allocations: 2.549 MB / 406.1 MB, free: 308 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001767/0.2127, allocations: 0.5547 MB / 406.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002518/0.2152, allocations: 0.6482 MB / 407.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00283/0.2181, allocations: 1.512 MB / 408.8 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005897/0.224, allocations: 2.485 MB / 411.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01275/0.2368, allocations: 7.427 MB / 418.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.2368, allocations: 0 / 418.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2369, allocations: 0 / 418.7 MB, free: 3.637 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003329/0.2372, allocations: 0 / 418.7 MB, free: 3.637 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.01655/0.2538, allocations: 4.687 MB / 423.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.2538, allocations: 12.03 kB / 423.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001705/0.2555, allocations: 0.4917 MB / 423.9 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005005/0.2606, allocations: 2.4 MB / 426.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/0.2608, allocations: 274.9 kB / 426.6 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006721/0.2615, allocations: 351.9 kB / 426.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00926/0.2708, allocations: 5.021 MB / 431.9 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-05/0.2709, allocations: 7.938 kB / 431.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003512/0.2712, allocations: 148 kB / 432.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001833/0.2714, allocations: 183 kB / 432.3 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00797/0.2794, allocations: 4.287 MB / 436.6 MB, free: 1.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02603/0.3055, allocations: 14.72 MB / 451.3 MB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3045/0.61, allocations: 4.187 MB / 455.5 MB, free: 65.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005029/0.6151, allocations: 1.995 MB / 457.5 MB, free: 65.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003587/0.6155, allocations: 133.2 kB / 457.6 MB, free: 65.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.6156, allocations: 65.98 kB / 457.7 MB, free: 65.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 4.168e-06/0.6156, allocations: 0 / 457.7 MB, free: 65.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02568/0.6412, allocations: 10.01 MB / 467.7 MB, free: 61.61 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/0.6414, allocations: 74.03 kB / 467.7 MB, free: 61.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005906/0.6473, allocations: 2.504 MB / 470.2 MB, free: 60.61 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005384/0.6479, allocations: 65.55 kB / 470.3 MB, free: 60.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/0.6492, allocations: 1.621 MB / 471.9 MB, free: 59.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009579/0.6502, allocations: 0.7313 MB / 472.7 MB, free: 58.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007627/0.651, allocations: 416.2 kB / 473.1 MB, free: 58.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.759e-05/0.6511, allocations: 305.1 kB / 473.4 MB, free: 58.25 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00189/0.653, allocations: 1.296 MB / 474.7 MB, free: 57.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002006/0.655, allocations: 1.786 MB / 476.4 MB, free: 56.71 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003901/0.6589, allocations: 3.213 MB / 479.7 MB, free: 54.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.216e-05/0.6589, allocations: 2.562 kB / 479.7 MB, free: 54.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006872/0.6658, allocations: 4.082 MB / 483.7 MB, free: 52.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.287e-05/0.6659, allocations: 13.09 kB / 483.8 MB, free: 52.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/0.6659, allocations: 12 kB / 483.8 MB, free: 52.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002247/0.6682, allocations: 0.8313 MB / 484.6 MB, free: 51.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001816/0.67, allocations: 0.5227 MB / 485.1 MB, free: 50.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008687/0.6787, allocations: 9.481 MB / 494.6 MB, free: 40.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.6815, allocations: 123.8 kB / 494.7 MB, free: 40.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002875/0.6818, allocations: 84 kB / 494.8 MB, free: 40.67 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.002816/0.6847, allocations: 1.217 MB / 496 MB, free: 39.44 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009425/0.6856, allocations: 272.7 kB / 496.3 MB, free: 39.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005726/0.6913, allocations: 3.711 MB / 500 MB, free: 35.43 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/0.6914, allocations: 24 kB / 0.4883 GB, free: 35.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.6914, allocations: 4 kB / 0.4883 GB, free: 35.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.6914, allocations: 11.95 kB / 0.4883 GB, free: 35.39 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.7045, allocations: 8.019 MB / 0.4961 GB, free: 27.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.186e-05/0.7045, allocations: 4 kB / 0.4962 GB, free: 27.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/0.706, allocations: 395.7 kB / 0.4965 GB, free: 26.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002529/0.7086, allocations: 0.8679 MB / 0.4974 GB, free: 26.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002259/0.7088, allocations: 51.98 kB / 0.4974 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009811/0.7187, allocations: 11.06 MB / 0.5082 GB, free: 14.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.503e-06/0.7187, allocations: 12 kB / 0.5082 GB, free: 14.38 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009934/0.7287, allocations: 5.506 MB / 0.5136 GB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00217/0.7309, allocations: 0.6343 MB / 0.5142 GB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004256/0.7313, allocations: 52.08 kB / 0.5143 GB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00133/0.7327, allocations: 122.2 kB / 0.5144 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004928/0.7332, allocations: 181.5 kB / 0.5146 GB, free: 7.809 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/0.7333, allocations: 59.98 kB / 0.5146 GB, free: 7.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.736, allocations: 1.731 MB / 0.5163 GB, free: 6.008 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.736, allocations: 0 / 0.5163 GB, free: 6.008 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003557/0.7395, allocations: 0.7957 MB / 0.5171 GB, free: 5.215 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.0006882/0.7402, allocations: 249.2 kB / 0.5173 GB, free: 4.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005695/0.7459, allocations: 3.89 MB / 0.5211 GB, free: 1.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.746, allocations: 0 / 0.5211 GB, free: 1.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003889/0.7499, allocations: 2.487 MB / 0.5236 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004332/0.7542, allocations: 0.7784 MB / 0.5243 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01522/0.7695, allocations: 7.715 MB / 0.5319 GB, free: 5.918 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003082/0.7726, allocations: 2.768 MB / 0.5346 GB, free: 3.125 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002746/0.7754, allocations: 0.6859 MB / 0.5352 GB, free: 2.438 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006549/0.7761, allocations: 179.4 kB / 0.5354 GB, free: 2.266 MB / 398.1 MB Notification: Performance of SimCode: time 1.483e-06/0.7761, allocations: 0 / 0.5354 GB, free: 2.266 MB / 398.1 MB Notification: Performance of Templates: time 0.08604/0.8622, allocations: 44.6 MB / 0.579 GB, free: 5.648 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)