Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001026/0.001026, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001268/0.001268, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.0005236/0.0005236, allocations: 16 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3254/0.3259, allocations: 47.58 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.0142/0.3401, allocations: 11.77 MB / 338.3 MB, free: 7.684 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.3502, allocations: 4.401 MB / 342.7 MB, free: 3.273 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002806/0.353, allocations: 67.69 kB / 342.7 MB, free: 3.207 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003224/0.3563, allocations: 0.8393 MB / 343.6 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006367/0.3627, allocations: 1.131 MB / 344.7 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002849/0.3655, allocations: 0.6899 MB / 345.4 MB, free: 0.5352 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006629/0.3722, allocations: 4.032 MB / 349.4 MB, free: 12.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004338/0.3765, allocations: 2.206 MB / 351.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002946/0.3795, allocations: 1.307 MB / 352.9 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003594/0.3831, allocations: 1.673 MB / 354.6 MB, free: 7.25 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.3842, allocations: 208 kB / 354.8 MB, free: 7.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002405/0.3866, allocations: 435.7 kB / 355.2 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001407/0.388, allocations: 0.7706 MB / 356 MB, free: 5.848 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001624/0.3897, allocations: 0.7499 MB / 356.8 MB, free: 5.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006655/0.3963, allocations: 5.547 MB / 362.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.3964, allocations: 0 / 362.3 MB, free: 15.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.347e-06/0.3964, allocations: 4 kB / 362.3 MB, free: 15.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001276/0.3965, allocations: 0 / 362.3 MB, free: 15.52 MB / 302.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.009717/0.4062, allocations: 3.821 MB / 366.1 MB, free: 11.63 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.4063, allocations: 12.03 kB / 366.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004133/0.4104, allocations: 0.8308 MB / 367 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003773/0.4142, allocations: 2.191 MB / 369.2 MB, free: 8.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001992/0.4144, allocations: 238.4 kB / 369.4 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005089/0.415, allocations: 331.8 kB / 369.7 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007809/0.4228, allocations: 4.253 MB / 374 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.119e-05/0.4229, allocations: 3.938 kB / 374 MB, free: 3.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002967/0.4232, allocations: 136 kB / 374.1 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001521/0.4233, allocations: 154.4 kB / 374.3 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00595/0.4293, allocations: 3.601 MB / 377.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02039/0.4497, allocations: 13.47 MB / 391.3 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007079/0.4568, allocations: 6.947 MB / 398.3 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002415/0.4592, allocations: 1.39 MB / 399.7 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007001/0.4663, allocations: 3.852 MB / 403.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/0.4677, allocations: 0.8493 MB / 404.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 4.278e-06/0.4677, allocations: 0 / 404.4 MB, free: 3.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=139): time 0.01392/0.4816, allocations: 6.552 MB / 410.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.4818, allocations: 222.9 kB / 411.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003442/0.4852, allocations: 1.899 MB / 413 MB, free: 10.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.4854, allocations: 53.69 kB / 413.1 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001576/0.487, allocations: 1.466 MB / 414.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005162/0.4875, allocations: 485 kB / 415 MB, free: 8.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.703e-05/0.4876, allocations: 39.94 kB / 415.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.4878, allocations: 377.9 kB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.4889, allocations: 0.652 MB / 416.1 MB, free: 7.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001525/0.4905, allocations: 1.21 MB / 417.3 MB, free: 6.453 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001409/0.4919, allocations: 0.8769 MB / 418.2 MB, free: 5.578 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.268e-06/0.4919, allocations: 4 kB / 418.2 MB, free: 5.574 MB / 350.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004054/0.496, allocations: 2.413 MB / 420.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.496, allocations: 11.98 kB / 420.6 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.337e-05/0.4961, allocations: 16 kB / 420.6 MB, free: 3.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007683/0.4968, allocations: 303.3 kB / 420.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.4982, allocations: 375.4 kB / 421.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005707/0.5039, allocations: 5.855 MB / 427.1 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/0.5054, allocations: 91.86 kB / 427.2 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.5056, allocations: 87.94 kB / 427.3 MB, free: 11.98 MB / 366.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 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.5076, allocations: 1.039 MB / 428.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004341/0.5081, allocations: 197.6 kB / 428.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004081/0.5122, allocations: 2.238 MB / 430.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.5122, allocations: 20 kB / 430.8 MB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.687e-05/0.5122, allocations: 4 kB / 430.8 MB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.5122, allocations: 7.969 kB / 430.8 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008177/0.5204, allocations: 5.094 MB / 435.9 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.612e-06/0.5204, allocations: 0 / 435.9 MB, free: 3.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007556/0.5212, allocations: 187.7 kB / 436.1 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001135/0.5223, allocations: 460.2 kB / 436.5 MB, free: 2.539 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.5225, allocations: 47.97 kB / 436.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01032/0.5328, allocations: 10.17 MB / 446.8 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.5328, allocations: 0 / 446.8 MB, free: 7.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005302/0.5381, allocations: 3.135 MB / 449.9 MB, free: 4.426 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.5393, allocations: 434.4 kB / 450.3 MB, free: 3.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005349/0.5399, allocations: 39.95 kB / 450.4 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001127/0.541, allocations: 63.95 kB / 450.4 MB, free: 3.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.5413, allocations: 109.1 kB / 450.5 MB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.529e-05/0.5414, allocations: 39.98 kB / 450.6 MB, free: 3.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003049/0.5445, allocations: 1.299 MB / 451.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.5445, allocations: 0 / 451.9 MB, free: 2.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002875/0.5474, allocations: 0.582 MB / 452.4 MB, free: 1.859 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001308/0.5487, allocations: 471.4 kB / 452.9 MB, free: 1.395 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2007/0.7494, allocations: 2.164 MB / 455.1 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.7495, allocations: 0.5938 kB / 455.1 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003132/0.7526, allocations: 1.575 MB / 456.6 MB, free: 109.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.7553, allocations: 0.513 MB / 457.2 MB, free: 109.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.7655, allocations: 7.027 MB / 464.2 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001795/0.7673, allocations: 2.348 MB / 466.5 MB, free: 104.8 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001424/0.7687, allocations: 414.8 kB / 466.9 MB, free: 104.8 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.7691, allocations: 132.6 kB / 467.1 MB, free: 104.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.7691, allocations: 0 / 467.1 MB, free: 104.7 MB / 382.1 MB Notification: Performance of Templates: time 0.04208/0.8112, allocations: 27.87 MB / 494.9 MB, free: 80.21 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1)