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.001151/0.001151, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001147, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.391/1.391, allocations: 205.1 MB / 222.4 MB, free: 4.605 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.001301/0.001301, allocations: 51.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2286, allocations: 46.64 MB / 325.3 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01661/0.2453, allocations: 13.38 MB / 338.7 MB, free: 6.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.2559, allocations: 4.737 MB / 343.4 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00297/0.259, allocations: 71.69 kB / 343.5 MB, free: 1.66 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003821/0.2628, allocations: 1.087 MB / 344.6 MB, free: 0.5664 MB / 270.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.005742/0.2686, allocations: 1.375 MB / 346 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003038/0.2716, allocations: 0.9664 MB / 346.9 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00636/0.278, allocations: 4.043 MB / 351 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005275/0.2833, allocations: 3.205 MB / 354.2 MB, free: 6.875 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.2865, allocations: 1.9 MB / 356.1 MB, free: 4.969 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003657/0.2902, allocations: 2.152 MB / 358.2 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001414/0.2916, allocations: 0.5078 MB / 358.7 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002456/0.2941, allocations: 0.7653 MB / 359.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.2953, allocations: 1.141 MB / 360.7 MB, free: 400 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002741/0.2981, allocations: 2.143 MB / 362.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006488/0.3046, allocations: 6.746 MB / 369.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3046, allocations: 0 / 369.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3046, allocations: 0 / 369.5 MB, free: 7.473 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001611/0.3048, allocations: 4 kB / 369.5 MB, free: 7.469 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.01118/0.316, allocations: 4.483 MB / 374 MB, free: 2.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.316, allocations: 8.031 kB / 374 MB, free: 2.902 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004161/0.3202, allocations: 0.8202 MB / 374.9 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003993/0.3242, allocations: 2.307 MB / 377.2 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.3244, allocations: 238.4 kB / 377.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004777/0.3249, allocations: 315.9 kB / 377.7 MB, free: 15.17 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007025/0.3319, allocations: 4.284 MB / 382 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.63e-05/0.332, allocations: 7.938 kB / 382 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000294/0.3323, allocations: 132 kB / 382.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.3324, allocations: 154.4 kB / 382.3 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005685/0.3381, allocations: 3.617 MB / 385.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01889/0.357, allocations: 13.42 MB / 399.3 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006285/0.3633, allocations: 6.962 MB / 406.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002036/0.3654, allocations: 1.386 MB / 407.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006086/0.3715, allocations: 3.844 MB / 411.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001214/0.3727, allocations: 0.8493 MB / 412.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=131): time 2.796e-06/0.3728, allocations: 0 / 412.4 MB, free: 11.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=139): time 0.01173/0.3845, allocations: 6.493 MB / 418.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.247e-05/0.3846, allocations: 222.9 kB / 419.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002583/0.3872, allocations: 1.914 MB / 421 MB, free: 2.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.654e-05/0.3873, allocations: 49.7 kB / 421 MB, free: 2.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.3885, allocations: 1.478 MB / 422.5 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003625/0.3889, allocations: 481.1 kB / 423 MB, free: 188 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004422/0.3893, allocations: 315.3 kB / 423.3 MB, free: 15.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.3894, allocations: 305.1 kB / 423.6 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009948/0.3904, allocations: 0.6637 MB / 424.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.3918, allocations: 1.214 MB / 425.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002383/0.3942, allocations: 1.936 MB / 427.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.3942, allocations: 8 kB / 427.4 MB, free: 11.31 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003644/0.3979, allocations: 2.42 MB / 429.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3979, allocations: 12.28 kB / 429.8 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.3979, allocations: 20 kB / 429.9 MB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007025/0.3986, allocations: 291.2 kB / 430.1 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.4, allocations: 379.4 kB / 430.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005404/0.4054, allocations: 6.398 MB / 436.9 MB, free: 1.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/0.4068, allocations: 91.92 kB / 437 MB, free: 1.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001094/0.4069, allocations: 79.98 kB / 437.1 MB, free: 1.172 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 ($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.001587/0.4085, allocations: 1.035 MB / 438.1 MB, free: 132 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/0.4088, allocations: 197.6 kB / 438.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003593/0.4124, allocations: 2.246 MB / 440.5 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.107e-05/0.4124, allocations: 12 kB / 440.6 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.258e-06/0.4124, allocations: 8 kB / 440.6 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.51e-05/0.4124, allocations: 11.95 kB / 440.6 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007123/0.4196, allocations: 5.094 MB / 445.7 MB, free: 8.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.4196, allocations: 4 kB / 445.7 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007764/0.4204, allocations: 175.8 kB / 445.8 MB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001164/0.4216, allocations: 472 kB / 446.3 MB, free: 7.715 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.089e-05/0.4217, allocations: 47.91 kB / 446.4 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1726/0.5942, allocations: 11.13 MB / 457.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5943, allocations: 1.5 kB / 457.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005226/0.5995, allocations: 3.139 MB / 460.6 MB, free: 105.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009847/0.6005, allocations: 430.2 kB / 461 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005755/0.6011, allocations: 45.75 kB / 461.1 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.6023, allocations: 57.03 kB / 461.1 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003278/0.6027, allocations: 105.3 kB / 461.2 MB, free: 105.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.6028, allocations: 38.58 kB / 461.3 MB, free: 105.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003194/0.606, allocations: 1.316 MB / 462.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.606, allocations: 0 / 462.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003135/0.6092, allocations: 0.5878 MB / 463.2 MB, free: 104.9 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.001157/0.6103, allocations: 475.7 kB / 463.7 MB, free: 104.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004734/0.6151, allocations: 2.588 MB / 466.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.6151, allocations: 0 / 466.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002088/0.6172, allocations: 1.579 MB / 467.8 MB, free: 102.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.6197, allocations: 0.5369 MB / 468.4 MB, free: 102.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008327/0.6281, allocations: 5.842 MB / 474.2 MB, free: 99.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001541/0.6296, allocations: 2.349 MB / 476.6 MB, free: 97.35 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001373/0.631, allocations: 415.8 kB / 477 MB, free: 97.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002853/0.6313, allocations: 137.4 kB / 477.1 MB, free: 96.92 MB / 382.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6313, allocations: 0 / 477.1 MB, free: 96.92 MB / 382.1 MB Notification: Performance of Templates: time 0.04245/0.6738, allocations: 30.01 MB / 0.4952 GB, free: 67.01 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)