Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005609/0.005609, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00114/0.00114, allocations: 193.5 kB / 16.67 MB, free: 5.52 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.35/1.35, allocations: 205.1 MB / 222.5 MB, free: 12.26 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.001205/0.001205, allocations: 55.92 kB / 326.6 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.09033, allocations: 46.62 MB / 373.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2213/0.3116, allocations: 13.37 MB / 386.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.3217, allocations: 4.756 MB / 391.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002708/0.3245, allocations: 76.28 kB / 391.4 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00311/0.3276, allocations: 1.09 MB / 392.5 MB, free: 1.949 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.004497/0.3321, allocations: 1.366 MB / 393.8 MB, free: 1.07 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002377/0.3345, allocations: 0.9683 MB / 394.8 MB, free: 468 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006165/0.3407, allocations: 4.066 MB / 398.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004297/0.345, allocations: 3.21 MB / 402.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003968/0.349, allocations: 1.897 MB / 404 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003884/0.3529, allocations: 2.164 MB / 406.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009574/0.3539, allocations: 0.5089 MB / 406.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002214/0.3561, allocations: 0.7486 MB / 407.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00119/0.3573, allocations: 1.143 MB / 408.5 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003097/0.3604, allocations: 2.146 MB / 410.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00922/0.3697, allocations: 6.782 MB / 417.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.3697, allocations: 0 / 417.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3697, allocations: 0 / 417.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000214/0.3699, allocations: 0 / 417.5 MB, free: 3.305 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01285/0.3828, allocations: 4.492 MB / 422 MB, free: 14.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.3829, allocations: 8.031 kB / 422 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004242/0.3871, allocations: 0.8279 MB / 422.8 MB, free: 13.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005369/0.3925, allocations: 2.319 MB / 425.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.3927, allocations: 238.4 kB / 425.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006447/0.3933, allocations: 323.9 kB / 425.7 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007493/0.4009, allocations: 4.292 MB / 430 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-05/0.4009, allocations: 0 / 430 MB, free: 6.633 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003162/0.4013, allocations: 128 kB / 430.1 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001379/0.4014, allocations: 150.4 kB / 430.2 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006142/0.4076, allocations: 3.617 MB / 433.8 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01983/0.4274, allocations: 13.26 MB / 447.1 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007492/0.435, allocations: 6.966 MB / 454.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002095/0.4371, allocations: 1.351 MB / 455.4 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00699/0.4441, allocations: 3.828 MB / 459.2 MB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001341/0.4455, allocations: 0.8493 MB / 460.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.026e-06/0.4455, allocations: 0 / 460.1 MB, free: 7.102 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01253/0.458, allocations: 6.501 MB / 466.6 MB, free: 404 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000112/0.4581, allocations: 226.9 kB / 466.8 MB, free: 128 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002907/0.4611, allocations: 1.91 MB / 468.7 MB, free: 14.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.886e-05/0.4612, allocations: 49.7 kB / 468.8 MB, free: 14.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001363/0.4625, allocations: 1.47 MB / 470.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003987/0.463, allocations: 489 kB / 470.7 MB, free: 12.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004569/0.4634, allocations: 311.3 kB / 471 MB, free: 11.88 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.421e-05/0.4635, allocations: 309 kB / 471.3 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.4646, allocations: 0.6637 MB / 472 MB, free: 10.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.4661, allocations: 1.214 MB / 473.2 MB, free: 9.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002522/0.4686, allocations: 1.932 MB / 475.1 MB, free: 7.332 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.008e-05/0.4687, allocations: 8 kB / 475.2 MB, free: 7.324 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003873/0.4725, allocations: 2.424 MB / 477.6 MB, free: 4.859 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.4726, allocations: 12 kB / 477.6 MB, free: 4.848 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.4726, allocations: 16 kB / 477.6 MB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007589/0.4734, allocations: 287.5 kB / 477.9 MB, free: 4.539 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001413/0.4748, allocations: 379.4 kB / 478.3 MB, free: 4.168 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005927/0.4807, allocations: 6.387 MB / 484.6 MB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.4822, allocations: 92.02 kB / 484.7 MB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001269/0.4823, allocations: 75.98 kB / 484.8 MB, free: 13.2 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.dutyCycle.nextTimeEvent,$whenCondition1,dutyCycle.nextTimeEventScaled,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(1,4,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00169/0.484, allocations: 1.031 MB / 485.8 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000286/0.4843, allocations: 197.6 kB / 486 MB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003788/0.4881, allocations: 2.257 MB / 488.3 MB, free: 9.645 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.077e-05/0.4881, allocations: 15.94 kB / 488.3 MB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.4882, allocations: 12 kB / 488.3 MB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.311e-05/0.4882, allocations: 7.969 kB / 488.3 MB, free: 9.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007747/0.4959, allocations: 5.077 MB / 493.4 MB, free: 4.406 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4959, allocations: 4 kB / 493.4 MB, free: 4.402 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007967/0.4968, allocations: 179.9 kB / 493.6 MB, free: 4.227 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001181/0.498, allocations: 468.2 kB / 494 MB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.513e-05/0.4981, allocations: 47.91 kB / 494.1 MB, free: 3.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01051/0.5086, allocations: 11.12 MB / 0.4934 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.5086, allocations: 0 / 0.4934 GB, free: 7.879 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005195/0.5138, allocations: 3.144 MB / 0.4964 GB, free: 4.645 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.5149, allocations: 430.5 kB / 0.4968 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002512/0.5152, allocations: 39.98 kB / 0.4969 GB, free: 4.164 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008544/0.516, allocations: 63.95 kB / 0.4969 GB, free: 4.102 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002356/0.5163, allocations: 101.1 kB / 0.497 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.813e-05/0.5164, allocations: 39.98 kB / 0.4971 GB, free: 3.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001957/0.5183, allocations: 1.315 MB / 0.4984 GB, free: 2.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5184, allocations: 0 / 0.4984 GB, free: 2.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002378/0.5207, allocations: 0.582 MB / 0.4989 GB, free: 2.078 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,13,100.0%), (1,3,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.001355/0.5221, allocations: 470.8 kB / 0.4994 GB, free: 1.605 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003453/0.5256, allocations: 2.172 MB / 0.5015 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.5256, allocations: 0 / 0.5015 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.5278, allocations: 1.59 MB / 0.5031 GB, free: 13.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.5301, allocations: 0.5329 MB / 0.5036 GB, free: 13.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008961/0.5391, allocations: 5.794 MB / 0.5092 GB, free: 7.352 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001992/0.5411, allocations: 2.352 MB / 0.5115 GB, free: 4.965 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001264/0.5423, allocations: 409 kB / 0.5119 GB, free: 4.562 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003464/0.5427, allocations: 135.4 kB / 0.512 GB, free: 4.434 MB / 446.1 MB Notification: Performance of SimCode: time 5.61e-07/0.5427, allocations: 0 / 0.512 GB, free: 4.434 MB / 446.1 MB Notification: Performance of Templates: time 0.05161/0.5943, allocations: 30.52 MB / 0.5419 GB, free: 5.848 MB / 478.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)