Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008293/0.0008295, allocations: 92.5 kB / 16.65 MB, free: 6.535 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.0009657/0.0009658, allocations: 172.6 kB / 17.56 MB, free: 6.184 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.345/1.345, allocations: 205.4 MB / 223.7 MB, free: 13.04 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.0006978/0.0006978, allocations: 12 kB / 280.7 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09248/0.09319, allocations: 47.59 MB / 328.3 MB, free: 3.738 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01358/0.1068, allocations: 12.87 MB / 341.2 MB, free: 6.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008922/0.1158, allocations: 4.405 MB / 345.6 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002222/0.118, allocations: 67.69 kB / 345.7 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003001/0.1211, allocations: 0.9017 MB / 346.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004202/0.1253, allocations: 1.251 MB / 347.8 MB, free: 160 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002198/0.1275, allocations: 0.8382 MB / 348.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006271/0.1338, allocations: 5.102 MB / 353.8 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004103/0.1379, allocations: 2.996 MB / 356.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002375/0.1403, allocations: 1.517 MB / 358.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002959/0.1433, allocations: 1.999 MB / 360.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006346/0.144, allocations: 243.9 kB / 360.5 MB, free: 3.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.1452, allocations: 459.7 kB / 361 MB, free: 2.914 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008283/0.1461, allocations: 0.9183 MB / 361.9 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002815/0.1489, allocations: 2.031 MB / 363.9 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006684/0.1556, allocations: 7.249 MB / 371.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.1556, allocations: 0 / 371.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1557, allocations: 0 / 371.2 MB, free: 8.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001599/0.1558, allocations: 0 / 371.2 MB, free: 8.672 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01079/0.1666, allocations: 4.257 MB / 375.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.1667, allocations: 12.03 kB / 375.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004885/0.1716, allocations: 0.878 MB / 376.3 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005298/0.1769, allocations: 2.585 MB / 378.9 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002505/0.1772, allocations: 275.6 kB / 379.2 MB, free: 0.543 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008163/0.178, allocations: 359.8 kB / 379.5 MB, free: 196 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1877/0.3657, allocations: 5.043 MB / 384.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.096e-05/0.3658, allocations: 5.203 kB / 384.6 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003657/0.3662, allocations: 145.3 kB / 384.7 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001827/0.3664, allocations: 163.5 kB / 384.9 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009865/0.3763, allocations: 4.402 MB / 389.3 MB, free: 44.31 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02598/0.4023, allocations: 16 MB / 405.3 MB, free: 33.44 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006267/0.4086, allocations: 7.799 MB / 413 MB, free: 25.71 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00259/0.4113, allocations: 1.731 MB / 414.8 MB, free: 23.99 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007052/0.4183, allocations: 4.668 MB / 419.4 MB, free: 19.29 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.009e-05/0.4184, allocations: 51.88 kB / 419.5 MB, free: 19.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 4.568e-06/0.4184, allocations: 0 / 419.5 MB, free: 19.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01563/0.4341, allocations: 8.221 MB / 427.7 MB, free: 10.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.181e-05/0.4341, allocations: 68.72 kB / 427.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/0.4371, allocations: 2.159 MB / 429.9 MB, free: 8.508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002025/0.4373, allocations: 56.98 kB / 430 MB, free: 8.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009013/0.4382, allocations: 1.612 MB / 431.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.4386, allocations: 0.5482 MB / 432.2 MB, free: 6.281 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.4388, allocations: 169.6 kB / 432.3 MB, free: 6.109 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.4389, allocations: 305.1 kB / 432.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4403, allocations: 0.9565 MB / 433.6 MB, free: 4.852 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.4418, allocations: 1.468 MB / 435.1 MB, free: 3.172 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002887/0.4447, allocations: 2.534 MB / 437.6 MB, free: 440 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.4447, allocations: 4 kB / 437.6 MB, free: 436 kB / 318.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.0058/0.4505, allocations: 3.371 MB / 441 MB, free: 13.01 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.4506, allocations: 12.03 kB / 441 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/0.4506, allocations: 20 kB / 441 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.4525, allocations: 0.7365 MB / 441.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.454, allocations: 379.4 kB / 442.1 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0113/0.4653, allocations: 10.42 MB / 452.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/0.4672, allocations: 95.95 kB / 452.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001838/0.4674, allocations: 80.36 kB / 452.7 MB, free: 0.7461 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (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.002354/0.4697, allocations: 1.212 MB / 453.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/0.4702, allocations: 237.1 kB / 454.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005626/0.4759, allocations: 3.179 MB / 457.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.989e-05/0.4759, allocations: 16 kB / 457.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.982e-05/0.4759, allocations: 12 kB / 457.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.476, allocations: 7.969 kB / 457.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01156/0.4875, allocations: 6.596 MB / 463.9 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.4876, allocations: 4 kB / 463.9 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008608/0.4885, allocations: 175.7 kB / 464.1 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002268/0.4907, allocations: 0.9053 MB / 465 MB, free: 4.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001125/0.4909, allocations: 43.97 kB / 465.1 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01567/0.5065, allocations: 14.84 MB / 479.9 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.5066, allocations: 4.031 kB / 479.9 MB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007569/0.5142, allocations: 4.544 MB / 484.5 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5156, allocations: 0.5178 MB / 485 MB, free: 15.38 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003133/0.5159, allocations: 43.98 kB / 485 MB, free: 15.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.5169, allocations: 83.94 kB / 485.1 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005098/0.5174, allocations: 158 kB / 485.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.955e-05/0.5175, allocations: 44 kB / 485.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002375/0.5199, allocations: 1.489 MB / 486.8 MB, free: 13.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5199, allocations: 3.938 kB / 486.8 MB, free: 13.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002669/0.5226, allocations: 0.6992 MB / 487.5 MB, free: 12.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.0004067/0.523, allocations: 172 kB / 487.7 MB, free: 12.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005069/0.5281, allocations: 3.132 MB / 490.8 MB, free: 9.469 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.5281, allocations: 8 kB / 490.8 MB, free: 9.461 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003403/0.5316, allocations: 2.283 MB / 493.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003394/0.535, allocations: 0.6059 MB / 493.7 MB, free: 6.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.5471, allocations: 8.543 MB / 0.4905 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00243/0.5496, allocations: 2.674 MB / 0.4931 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001754/0.5514, allocations: 479.4 kB / 0.4935 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003737/0.5518, allocations: 139.4 kB / 0.4937 GB, free: 10.6 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5518, allocations: 0 / 0.4937 GB, free: 10.6 MB / 398.1 MB Notification: Performance of Templates: time 0.06518/0.6169, allocations: 36.29 MB / 0.5291 GB, free: 6.262 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)