Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005552/0.005552, allocations: 101.7 kB / 15.73 MB, free: 6.051 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.00123/0.00123, allocations: 196 kB / 16.67 MB, free: 5.98 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.397/1.397, allocations: 205.1 MB / 222.5 MB, free: 4.371 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.001121/0.001121, allocations: 54.7 kB / 326.6 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08789/0.08902, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01752/0.1066, allocations: 16.76 MB / 389.9 MB, free: 472 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.1178, allocations: 5.712 MB / 395.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003238/0.1212, allocations: 99.56 kB / 395.8 MB, free: 10.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003566/0.1247, allocations: 1.379 MB / 397.1 MB, free: 9.246 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005687/0.1304, allocations: 1.826 MB / 399 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002427/0.1329, allocations: 1.064 MB / 400 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0076/0.1405, allocations: 6.319 MB / 406.3 MB, free: 0 / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006118/0.1466, allocations: 5.287 MB / 411.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004617/0.1513, allocations: 2.956 MB / 414.6 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004485/0.1558, allocations: 3.335 MB / 417.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.157, allocations: 0.7891 MB / 418.7 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002901/0.1599, allocations: 1.066 MB / 419.8 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001764/0.1617, allocations: 1.874 MB / 421.6 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005076/0.1668, allocations: 3.349 MB / 425 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.1777, allocations: 10.5 MB / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1777, allocations: 0 / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.1777, allocations: 0 / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002912/0.178, allocations: 0 / 435.5 MB, free: 2.684 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01852/0.1965, allocations: 6.522 MB / 442 MB, free: 12.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.488e-05/0.1966, allocations: 15.89 kB / 442 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004996/0.2016, allocations: 1.052 MB / 443.1 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007093/0.2087, allocations: 3.412 MB / 446.5 MB, free: 7.516 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003193/0.2091, allocations: 369.7 kB / 446.9 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001077/0.2102, allocations: 483.9 kB / 447.3 MB, free: 6.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2139/0.4241, allocations: 6.868 MB / 454.2 MB, free: 64.8 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001528/0.4243, allocations: 2.031 kB / 454.2 MB, free: 64.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007116/0.425, allocations: 199.5 kB / 454.4 MB, free: 64.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003922/0.4254, allocations: 240 kB / 454.6 MB, free: 64.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.4395, allocations: 5.925 MB / 460.6 MB, free: 63.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02974/0.4692, allocations: 20.67 MB / 481.2 MB, free: 49.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007033/0.4763, allocations: 9.953 MB / 491.2 MB, free: 40.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003009/0.4793, allocations: 2.478 MB / 493.7 MB, free: 38.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009013/0.4884, allocations: 6.482 MB / 0.4884 GB, free: 32.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.4884, allocations: 60.31 kB / 0.4885 GB, free: 32.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.449e-06/0.4884, allocations: 0 / 0.4885 GB, free: 32.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.01475/0.5032, allocations: 9.686 MB / 0.4979 GB, free: 22.25 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.493e-05/0.5033, allocations: 73.41 kB / 0.498 GB, free: 22.16 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003511/0.5068, allocations: 2.989 MB / 0.5009 GB, free: 19.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001507/0.507, allocations: 65.7 kB / 0.501 GB, free: 19.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009079/0.5079, allocations: 2.155 MB / 0.5031 GB, free: 16.92 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003791/0.5083, allocations: 0.7654 MB / 0.5038 GB, free: 16.16 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005997/0.5089, allocations: 469 kB / 0.5043 GB, free: 15.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.378e-05/0.5089, allocations: 301.1 kB / 0.5046 GB, free: 15.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.5105, allocations: 1.293 MB / 0.5058 GB, free: 14.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.5124, allocations: 1.924 MB / 0.5077 GB, free: 11.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003438/0.5158, allocations: 3.348 MB / 0.511 GB, free: 8.32 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.5158, allocations: 4 kB / 0.511 GB, free: 8.316 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005607/0.5214, allocations: 4.245 MB / 0.5151 GB, free: 4.027 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5215, allocations: 22.45 kB / 0.5152 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.238e-05/0.5215, allocations: 16.66 kB / 0.5152 GB, free: 3.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001913/0.5234, allocations: 0.7115 MB / 0.5159 GB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002029/0.5255, allocations: 0.5768 MB / 0.5164 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.5357, allocations: 10.88 MB / 0.527 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002358/0.5381, allocations: 111.9 kB / 0.5272 GB, free: 7.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002291/0.5384, allocations: 99.98 kB / 0.5272 GB, free: 7.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 (278): * Single equations (assignments): 273 * 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 {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003113/0.5415, allocations: 1.615 MB / 0.5288 GB, free: 5.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008049/0.5423, allocations: 316.2 kB / 0.5291 GB, free: 5.133 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006539/0.5489, allocations: 3.902 MB / 0.5329 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.5489, allocations: 20 kB / 0.533 GB, free: 1.145 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/0.5489, allocations: 12 kB / 0.533 GB, free: 1.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.549, allocations: 15.95 kB / 0.533 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/0.5625, allocations: 8.561 MB / 0.5413 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.386e-06/0.5625, allocations: 2.297 kB / 0.5413 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001591/0.5641, allocations: 351.8 kB / 0.5417 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002666/0.5668, allocations: 0.8784 MB / 0.5425 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001648/0.567, allocations: 59.97 kB / 0.5426 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0151/0.5821, allocations: 15.69 MB / 0.5579 GB, free: 6.668 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.5821, allocations: 7.969 kB / 0.5579 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009167/0.5913, allocations: 5.693 MB / 0.5635 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001757/0.5931, allocations: 0.6885 MB / 0.5642 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004549/0.5935, allocations: 52 kB / 0.5642 GB, free: 108 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.595, allocations: 112 kB / 0.5643 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004772/0.5955, allocations: 181.8 kB / 0.5645 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001417/0.5956, allocations: 63.92 kB / 0.5645 GB, free: 15.76 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003035/0.5987, allocations: 2.07 MB / 0.5666 GB, free: 13.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.5987, allocations: 0.75 kB / 0.5666 GB, free: 13.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003561/0.6022, allocations: 0.9361 MB / 0.5675 GB, free: 12.75 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006824/0.6029, allocations: 261.8 kB / 0.5677 GB, free: 12.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006158/0.6091, allocations: 3.906 MB / 0.5715 GB, free: 8.527 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.247e-06/0.6091, allocations: 7.938 kB / 0.5716 GB, free: 8.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004023/0.6132, allocations: 2.624 MB / 0.5741 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00411/0.6173, allocations: 0.9107 MB / 0.575 GB, free: 4.914 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01599/0.6333, allocations: 9.409 MB / 0.5842 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003273/0.6366, allocations: 3.422 MB / 0.5875 GB, free: 8.004 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002511/0.6391, allocations: 0.7565 MB / 0.5883 GB, free: 7.242 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005906/0.6397, allocations: 199.4 kB / 0.5885 GB, free: 7.047 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6398, allocations: 3.938 kB / 0.5885 GB, free: 7.043 MB / 462.1 MB Notification: Performance of Templates: time 0.2903/0.9301, allocations: 48.87 MB / 0.6362 GB, free: 157.6 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)