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.001219/0.001219, allocations: 112.1 kB / 17.06 MB, free: 5.969 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.001471/0.001471, allocations: 200 kB / 18.01 MB, free: 5.055 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.292/1.292, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.001258/0.001258, allocations: 47.92 kB / 327.9 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09754/0.09881, allocations: 46.61 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.2311/0.3299, allocations: 13.68 MB / 388.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008213/0.3382, allocations: 4.51 MB / 392.7 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001437/0.3397, allocations: 73.12 kB / 392.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002359/0.3421, allocations: 1.042 MB / 393.8 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003141/0.3452, allocations: 1.374 MB / 395.2 MB, free: 0.9219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001697/0.3469, allocations: 0.9197 MB / 396.1 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005772/0.3527, allocations: 4.745 MB / 400.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004296/0.357, allocations: 3.648 MB / 404.5 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003794/0.3608, allocations: 2.2 MB / 406.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003588/0.3644, allocations: 2.463 MB / 409.1 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000883/0.3653, allocations: 0.589 MB / 409.7 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.367, allocations: 0.793 MB / 410.5 MB, free: 9.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001165/0.3682, allocations: 1.339 MB / 411.9 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002656/0.3709, allocations: 2.465 MB / 414.3 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007438/0.3783, allocations: 7.769 MB / 422.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3783, allocations: 3.938 kB / 422.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3784, allocations: 0 / 422.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001351/0.3785, allocations: 0 / 422.1 MB, free: 15.95 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01231/0.3908, allocations: 5.029 MB / 427.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.3909, allocations: 12.03 kB / 427.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004212/0.3951, allocations: 0.8664 MB / 428 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00488/0.4, allocations: 2.658 MB / 430.7 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.4002, allocations: 275.6 kB / 430.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005074/0.4007, allocations: 367.8 kB / 431.3 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008204/0.4089, allocations: 5.029 MB / 436.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.991e-05/0.409, allocations: 7.906 kB / 436.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003236/0.4094, allocations: 140 kB / 436.5 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001464/0.4095, allocations: 171.1 kB / 436.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00717/0.4167, allocations: 4.381 MB / 441 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02295/0.4397, allocations: 15.71 MB / 456.7 MB, free: 12.76 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007566/0.4473, allocations: 7.776 MB / 464.5 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002464/0.4497, allocations: 1.714 MB / 466.2 MB, free: 2.371 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007638/0.4574, allocations: 4.651 MB / 470.9 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.4574, allocations: 47.88 kB / 470.9 MB, free: 13.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 2.865e-06/0.4575, allocations: 0 / 470.9 MB, free: 13.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.0162/0.4737, allocations: 8.139 MB / 479.1 MB, free: 5.207 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/0.4737, allocations: 68.72 kB / 479.1 MB, free: 5.129 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003081/0.4768, allocations: 2.155 MB / 481.3 MB, free: 2.938 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000101/0.4769, allocations: 53.7 kB / 481.3 MB, free: 2.879 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00111/0.478, allocations: 1.616 MB / 482.9 MB, free: 1.242 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000477/0.4785, allocations: 0.5429 MB / 483.5 MB, free: 0.6914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006136/0.4792, allocations: 359.2 kB / 483.8 MB, free: 340 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000121/0.4793, allocations: 305.1 kB / 484.1 MB, free: 32 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001542/0.4808, allocations: 0.9487 MB / 485.1 MB, free: 15.08 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001819/0.4827, allocations: 1.453 MB / 486.5 MB, free: 13.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.4861, allocations: 2.51 MB / 489 MB, free: 10.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.406e-06/0.4861, allocations: 4 kB / 489 MB, free: 10.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005473/0.4916, allocations: 3.344 MB / 492.4 MB, free: 7.309 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.851e-05/0.4916, allocations: 16 kB / 492.4 MB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.567e-05/0.4917, allocations: 16 kB / 492.4 MB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001866/0.4935, allocations: 0.7315 MB / 493.2 MB, free: 6.531 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001383/0.4949, allocations: 379.4 kB / 493.5 MB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.5067, allocations: 11.36 MB / 0.493 GB, free: 10.24 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.5088, allocations: 95.89 kB / 0.4931 GB, free: 10.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003178/0.5091, allocations: 79.98 kB / 0.4932 GB, free: 10.07 MB / 430.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.002768/0.5119, allocations: 1.209 MB / 0.4944 GB, free: 8.852 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000706/0.5126, allocations: 225.3 kB / 0.4946 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005815/0.5184, allocations: 3.16 MB / 0.4977 GB, free: 5.406 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.5185, allocations: 19.94 kB / 0.4977 GB, free: 5.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.235e-05/0.5185, allocations: 12 kB / 0.4977 GB, free: 5.375 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/0.5185, allocations: 7.969 kB / 0.4977 GB, free: 5.367 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01226/0.5308, allocations: 6.576 MB / 0.5042 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.5309, allocations: 0 / 0.5042 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008361/0.5317, allocations: 171.8 kB / 0.5043 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00231/0.534, allocations: 0.8992 MB / 0.5052 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001285/0.5342, allocations: 43.98 kB / 0.5052 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01686/0.5511, allocations: 16.17 MB / 0.521 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.519e-06/0.5511, allocations: 3.984 kB / 0.521 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00757/0.5587, allocations: 4.506 MB / 0.5254 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001766/0.5605, allocations: 0.5178 MB / 0.5259 GB, free: 7.363 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007583/0.5613, allocations: 35.98 kB / 0.526 GB, free: 7.328 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.5628, allocations: 79.89 kB / 0.5261 GB, free: 7.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005646/0.5633, allocations: 157 kB / 0.5262 GB, free: 7.098 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.5635, allocations: 47.98 kB / 0.5262 GB, free: 7.051 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003346/0.5669, allocations: 1.489 MB / 0.5277 GB, free: 5.543 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5669, allocations: 0 / 0.5277 GB, free: 5.543 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003305/0.5702, allocations: 0.6992 MB / 0.5284 GB, free: 4.844 MB / 462.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.0004273/0.5706, allocations: 183.5 kB / 0.5286 GB, free: 4.656 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005902/0.5765, allocations: 3.125 MB / 0.5316 GB, free: 1.457 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5766, allocations: 0 / 0.5316 GB, free: 1.457 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003601/0.5802, allocations: 2.256 MB / 0.5338 GB, free: 15.12 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/0.5838, allocations: 0.6485 MB / 0.5344 GB, free: 14.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.5966, allocations: 6.813 MB / 0.5411 GB, free: 7.609 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003526/0.6002, allocations: 2.67 MB / 0.5437 GB, free: 4.91 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001757/0.602, allocations: 483.4 kB / 0.5442 GB, free: 4.434 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005174/0.6025, allocations: 143.4 kB / 0.5443 GB, free: 4.293 MB / 478.1 MB Notification: Performance of SimCode: time 6.32e-07/0.6025, allocations: 0 / 0.5443 GB, free: 4.293 MB / 478.1 MB Notification: Performance of Templates: time 0.2906/0.8931, allocations: 37.48 MB / 0.5809 GB, free: 136 MB / 478.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)