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.004888/0.004888, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001099/0.001099, allocations: 192.3 kB / 16.67 MB, free: 5.973 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.408/1.408, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.002026/0.002026, allocations: 58.17 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0967/0.09874, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01417/0.113, allocations: 13.38 MB / 386.6 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008446/0.1214, allocations: 4.743 MB / 391.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001528/0.1231, allocations: 71.69 kB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002423/0.1255, allocations: 1.134 MB / 392.5 MB, free: 13.89 MB / 334.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.003011/0.1285, allocations: 1.406 MB / 393.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001894/0.1304, allocations: 0.9664 MB / 394.9 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003714/0.1342, allocations: 4.075 MB / 399 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003239/0.1374, allocations: 3.197 MB / 402.2 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.1398, allocations: 1.912 MB / 404.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.1421, allocations: 2.168 MB / 406.2 MB, free: 60 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000584/0.1427, allocations: 0.5079 MB / 406.7 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.1439, allocations: 0.7497 MB / 407.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009379/0.1449, allocations: 1.145 MB / 408.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002223/0.1471, allocations: 2.143 MB / 410.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006439/0.1536, allocations: 6.785 MB / 417.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.1536, allocations: 0 / 417.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1536, allocations: 0 / 417.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.534e-05/0.1537, allocations: 4 kB / 417.6 MB, free: 4.691 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.009769/0.1635, allocations: 4.491 MB / 422.1 MB, free: 128 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1635, allocations: 12.02 kB / 422.1 MB, free: 116 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003995/0.1675, allocations: 0.8201 MB / 422.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003775/0.1713, allocations: 2.33 MB / 425.2 MB, free: 12.9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000179/0.1715, allocations: 238.4 kB / 425.5 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004789/0.172, allocations: 323.9 kB / 425.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007076/0.1791, allocations: 4.28 MB / 430.1 MB, free: 8.023 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.984e-05/0.1792, allocations: 8 kB / 430.1 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002953/0.1795, allocations: 128 kB / 430.2 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000137/0.1796, allocations: 154.4 kB / 430.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006388/0.186, allocations: 3.621 MB / 434 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01953/0.2056, allocations: 13.24 MB / 447.2 MB, free: 6.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2015/0.4071, allocations: 6.962 MB / 454.2 MB, free: 65.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003549/0.4107, allocations: 1.36 MB / 455.5 MB, free: 65.89 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008056/0.4188, allocations: 3.822 MB / 459.3 MB, free: 64.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001556/0.4203, allocations: 0.8493 MB / 460.2 MB, free: 64.06 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 6.974e-06/0.4204, allocations: 0 / 460.2 MB, free: 64.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01343/0.4338, allocations: 6.498 MB / 466.7 MB, free: 60.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.335e-05/0.4339, allocations: 231.2 kB / 466.9 MB, free: 60.51 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/0.4377, allocations: 1.91 MB / 468.8 MB, free: 59.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.035e-05/0.4378, allocations: 51.77 kB / 468.9 MB, free: 59.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.439, allocations: 1.471 MB / 470.3 MB, free: 58.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/0.4394, allocations: 487.4 kB / 470.8 MB, free: 58.26 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005048/0.4399, allocations: 307.6 kB / 471.1 MB, free: 58.11 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.374e-05/0.4399, allocations: 305.1 kB / 471.4 MB, free: 57.81 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.441, allocations: 0.6658 MB / 472.1 MB, free: 57.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.4422, allocations: 1.211 MB / 473.3 MB, free: 56.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002131/0.4444, allocations: 1.941 MB / 475.2 MB, free: 55.35 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.865e-05/0.4444, allocations: 3.938 kB / 475.2 MB, free: 55.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003563/0.448, allocations: 2.432 MB / 477.7 MB, free: 54.24 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.448, allocations: 11.81 kB / 477.7 MB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.662e-05/0.4481, allocations: 15.69 kB / 477.7 MB, free: 54.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006866/0.4488, allocations: 286.3 kB / 478 MB, free: 54.13 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001278/0.45, allocations: 379.9 kB / 478.4 MB, free: 54.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004534/0.4546, allocations: 6.388 MB / 484.7 MB, free: 48.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.456, allocations: 94.3 kB / 484.8 MB, free: 48.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/0.4562, allocations: 71.34 kB / 484.9 MB, free: 48.44 MB / 382.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.001721/0.4579, allocations: 1.032 MB / 485.9 MB, free: 47.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004148/0.4583, allocations: 207.6 kB / 486.1 MB, free: 47.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.4618, allocations: 2.245 MB / 488.4 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.4618, allocations: 11.22 kB / 488.4 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.177e-05/0.4618, allocations: 10.33 kB / 488.4 MB, free: 46.23 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.4619, allocations: 11.97 kB / 488.4 MB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007572/0.4694, allocations: 5.088 MB / 493.5 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.4695, allocations: 0 / 493.5 MB, free: 41.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007225/0.4702, allocations: 193.4 kB / 493.7 MB, free: 41.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001095/0.4713, allocations: 458.6 kB / 494.1 MB, free: 40.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001051/0.4714, allocations: 36.86 kB / 494.2 MB, free: 40.66 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007754/0.4792, allocations: 11.12 MB / 0.4935 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.4792, allocations: 0 / 0.4935 GB, free: 28.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/0.4834, allocations: 3.136 MB / 0.4965 GB, free: 25.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00101/0.4845, allocations: 434.4 kB / 0.4969 GB, free: 25.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005344/0.485, allocations: 39.98 kB / 0.497 GB, free: 25.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.4861, allocations: 59.95 kB / 0.497 GB, free: 25.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.4864, allocations: 103.2 kB / 0.4971 GB, free: 25.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.854e-05/0.4864, allocations: 39.98 kB / 0.4972 GB, free: 24.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002162/0.4886, allocations: 1.315 MB / 0.4984 GB, free: 23.67 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4886, allocations: 0 / 0.4984 GB, free: 23.67 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002284/0.4909, allocations: 0.5846 MB / 0.499 GB, free: 23.09 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 (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.001091/0.492, allocations: 485.9 kB / 0.4995 GB, free: 22.63 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003001/0.495, allocations: 2.167 MB / 0.5016 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.495, allocations: 4.25 kB / 0.5016 GB, free: 20.41 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.497, allocations: 1.572 MB / 0.5031 GB, free: 18.78 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.4994, allocations: 0.5366 MB / 0.5037 GB, free: 18.24 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009784/0.5092, allocations: 5.794 MB / 0.5093 GB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002072/0.5114, allocations: 2.348 MB / 0.5116 GB, free: 10.05 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001308/0.5127, allocations: 409 kB / 0.512 GB, free: 9.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003939/0.5131, allocations: 139.4 kB / 0.5121 GB, free: 9.512 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.5131, allocations: 0 / 0.5121 GB, free: 9.512 MB / 382.1 MB Notification: Performance of Templates: time 0.05124/0.5643, allocations: 30.52 MB / 0.5419 GB, free: 10.96 MB / 414.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)