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.008123/0.008123, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.00127/0.00127, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.795/1.795, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001219/0.001219, allocations: 52.23 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1234/0.1246, allocations: 46.62 MB / 373.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01665/0.1413, allocations: 12.84 MB / 386.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01113/0.1525, allocations: 4.238 MB / 390.3 MB, free: 116 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004352/0.157, allocations: 75.56 kB / 390.4 MB, free: 40 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003585/0.1606, allocations: 0.9742 MB / 391.3 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005562/0.1662, allocations: 1.169 MB / 392.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.1677, allocations: 0.5305 MB / 393 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007077/0.1748, allocations: 4.669 MB / 397.7 MB, free: 8.664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0047/0.1795, allocations: 3.598 MB / 401.3 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004752/0.1843, allocations: 2.11 MB / 403.4 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005441/0.1897, allocations: 2.561 MB / 406 MB, free: 316 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001512/0.1913, allocations: 0.5547 MB / 406.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002095/0.1934, allocations: 0.6404 MB / 407.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001932/0.1953, allocations: 1.523 MB / 408.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004488/0.1998, allocations: 2.481 MB / 411.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008693/0.2085, allocations: 7.415 MB / 418.6 MB, free: 3.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.29e-05/0.2086, allocations: 4 kB / 418.6 MB, free: 3.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.2086, allocations: 4 kB / 418.6 MB, free: 3.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002765/0.2089, allocations: 4 kB / 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.01341/0.2223, allocations: 4.687 MB / 423.3 MB, free: 14.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.24e-05/0.2224, allocations: 8.031 kB / 423.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001543/0.2239, allocations: 0.4995 MB / 423.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005129/0.2291, allocations: 2.4 MB / 426.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002587/0.2294, allocations: 267 kB / 426.5 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006803/0.2301, allocations: 355.9 kB / 426.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0111/0.2412, allocations: 5.021 MB / 431.8 MB, free: 6.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.747e-05/0.2413, allocations: 4 kB / 431.8 MB, free: 6.227 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003349/0.2416, allocations: 144 kB / 432 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000185/0.2418, allocations: 187.1 kB / 432.2 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008426/0.2503, allocations: 4.291 MB / 436.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02484/0.2751, allocations: 14.73 MB / 451.2 MB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3245/0.5997, allocations: 4.182 MB / 455.4 MB, free: 65.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006818/0.6066, allocations: 1.995 MB / 457.4 MB, free: 65.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005239/0.6071, allocations: 132.3 kB / 457.5 MB, free: 65.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.433e-05/0.6072, allocations: 55.86 kB / 457.5 MB, free: 65.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 6.783e-06/0.6072, allocations: 1.5 kB / 457.5 MB, free: 65.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.0322/0.6394, allocations: 10.02 MB / 467.6 MB, free: 61.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.418e-05/0.6395, allocations: 74.03 kB / 467.6 MB, free: 61.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00552/0.6451, allocations: 2.509 MB / 470.1 MB, free: 60.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003789/0.6455, allocations: 61.64 kB / 470.2 MB, free: 60.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.6467, allocations: 1.613 MB / 471.8 MB, free: 59.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000783/0.6475, allocations: 0.735 MB / 472.5 MB, free: 58.71 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009053/0.6485, allocations: 423.1 kB / 473 MB, free: 58.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/0.6485, allocations: 305 kB / 473.3 MB, free: 58.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002844/0.6514, allocations: 1.296 MB / 474.6 MB, free: 57.76 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003368/0.6548, allocations: 1.782 MB / 476.3 MB, free: 56.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005374/0.6602, allocations: 3.219 MB / 479.6 MB, free: 54.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.855e-05/0.6603, allocations: 3.906 kB / 479.6 MB, free: 54.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007313/0.6676, allocations: 4.08 MB / 483.6 MB, free: 52.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.193e-05/0.6677, allocations: 13.09 kB / 483.6 MB, free: 52.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.912e-05/0.6677, allocations: 12 kB / 483.7 MB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002424/0.6701, allocations: 0.8217 MB / 484.5 MB, free: 51.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002106/0.6723, allocations: 0.5265 MB / 485 MB, free: 50.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008583/0.6809, allocations: 9.479 MB / 494.5 MB, free: 40.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003096/0.684, allocations: 123.8 kB / 494.6 MB, free: 40.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003829/0.6844, allocations: 84 kB / 494.7 MB, free: 40.62 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.002768/0.6872, allocations: 1.214 MB / 495.9 MB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.6882, allocations: 271.2 kB / 496.2 MB, free: 39.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005846/0.6941, allocations: 3.719 MB / 499.9 MB, free: 35.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.065e-05/0.6941, allocations: 23.94 kB / 499.9 MB, free: 35.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.714e-05/0.6942, allocations: 8.625 kB / 499.9 MB, free: 35.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.97e-05/0.6942, allocations: 11.95 kB / 499.9 MB, free: 35.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.708, allocations: 8.023 MB / 0.496 GB, free: 27.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.025e-05/0.708, allocations: 4 kB / 0.4961 GB, free: 27.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001612/0.7096, allocations: 387.8 kB / 0.4964 GB, free: 26.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002499/0.7122, allocations: 0.8667 MB / 0.4973 GB, free: 25.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000183/0.7124, allocations: 55.98 kB / 0.4973 GB, free: 25.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009348/0.7217, allocations: 11.06 MB / 0.5081 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.7218, allocations: 0 / 0.5081 GB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007866/0.7296, allocations: 5.519 MB / 0.5135 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/0.7318, allocations: 0.6327 MB / 0.5141 GB, free: 8.102 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007834/0.7326, allocations: 51.98 kB / 0.5142 GB, free: 8.051 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.7343, allocations: 120.6 kB / 0.5143 GB, free: 7.934 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005635/0.7349, allocations: 177.7 kB / 0.5145 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.735, allocations: 59.98 kB / 0.5145 GB, free: 7.703 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002746/0.7378, allocations: 1.734 MB / 0.5162 GB, free: 5.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7378, allocations: 0 / 0.5162 GB, free: 5.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003391/0.7412, allocations: 0.7955 MB / 0.517 GB, free: 5.164 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.0006486/0.7419, allocations: 248.2 kB / 0.5172 GB, free: 4.93 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005678/0.7476, allocations: 3.891 MB / 0.521 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.7476, allocations: 4 kB / 0.521 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004124/0.7517, allocations: 2.481 MB / 0.5235 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00438/0.7561, allocations: 0.7783 MB / 0.5242 GB, free: 13.63 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01563/0.7718, allocations: 7.721 MB / 0.5318 GB, free: 5.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003445/0.7753, allocations: 2.768 MB / 0.5345 GB, free: 3.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002797/0.7781, allocations: 0.6866 MB / 0.5351 GB, free: 2.387 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006669/0.7788, allocations: 179.4 kB / 0.5353 GB, free: 2.215 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.7788, allocations: 0 / 0.5353 GB, free: 2.215 MB / 398.1 MB Notification: Performance of Templates: time 0.08398/0.8628, allocations: 44.6 MB / 0.5789 GB, free: 5.602 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)