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.001182/0.001182, allocations: 108 kB / 15.6 MB, free: 132 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.001355/0.001355, allocations: 191.1 kB / 16.53 MB, free: 6.391 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.33/1.33, allocations: 205.1 MB / 222.4 MB, free: 4.598 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.001364/0.001364, allocations: 56.2 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2145, allocations: 46.64 MB / 325.3 MB, free: 1.996 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01405/0.2286, allocations: 13.37 MB / 338.7 MB, free: 6.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008568/0.2372, allocations: 4.741 MB / 343.4 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002299/0.2396, allocations: 71.69 kB / 343.5 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003131/0.2427, allocations: 1.095 MB / 344.6 MB, free: 0.7148 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.004043/0.2468, allocations: 1.363 MB / 346 MB, free: 15.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0024/0.2492, allocations: 0.9741 MB / 346.9 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004864/0.2541, allocations: 4.047 MB / 351 MB, free: 10.3 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00403/0.2581, allocations: 3.205 MB / 354.2 MB, free: 7.023 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002528/0.2607, allocations: 1.9 MB / 356.1 MB, free: 5.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002957/0.2636, allocations: 2.156 MB / 358.2 MB, free: 2.953 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007813/0.2644, allocations: 0.5078 MB / 358.8 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.266, allocations: 0.7653 MB / 359.5 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009604/0.2669, allocations: 1.141 MB / 360.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002297/0.2692, allocations: 2.143 MB / 362.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00607/0.2753, allocations: 6.742 MB / 369.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2753, allocations: 0 / 369.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2753, allocations: 0 / 369.5 MB, free: 7.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.313e-05/0.2754, allocations: 4 kB / 369.5 MB, free: 7.617 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.009997/0.2854, allocations: 4.487 MB / 374 MB, free: 3.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.2855, allocations: 8.031 kB / 374 MB, free: 3.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00414/0.2896, allocations: 0.8163 MB / 374.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003669/0.2933, allocations: 2.303 MB / 377.2 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002119/0.2936, allocations: 250.3 kB / 377.4 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005322/0.2941, allocations: 315.9 kB / 377.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007045/0.3011, allocations: 4.284 MB / 382 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-05/0.3012, allocations: 4 kB / 382 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.3015, allocations: 128 kB / 382.1 MB, free: 10.85 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3017, allocations: 154.4 kB / 382.3 MB, free: 10.7 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005915/0.3076, allocations: 3.621 MB / 385.9 MB, free: 7.066 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01927/0.3269, allocations: 13.42 MB / 399.3 MB, free: 9.309 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007133/0.3341, allocations: 6.962 MB / 406.3 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00221/0.3363, allocations: 1.382 MB / 407.7 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006341/0.3427, allocations: 3.84 MB / 411.5 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001317/0.344, allocations: 0.8532 MB / 412.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=131): time 3.527e-06/0.344, allocations: 0 / 412.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=139): time 0.01226/0.3563, allocations: 6.489 MB / 418.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/0.3564, allocations: 222.9 kB / 419.1 MB, free: 4.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002634/0.3591, allocations: 1.918 MB / 421 MB, free: 2.355 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001055/0.3592, allocations: 49.7 kB / 421 MB, free: 2.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.3605, allocations: 1.466 MB / 422.5 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000382/0.3608, allocations: 489.1 kB / 423 MB, free: 340 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004362/0.3613, allocations: 311.3 kB / 423.3 MB, free: 24 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3614, allocations: 305.1 kB / 423.6 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.3625, allocations: 0.6598 MB / 424.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.3639, allocations: 1.222 MB / 425.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002491/0.3664, allocations: 1.932 MB / 427.4 MB, free: 11.47 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.3665, allocations: 8 kB / 427.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003903/0.3704, allocations: 2.428 MB / 429.8 MB, free: 8.996 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.3704, allocations: 12.28 kB / 429.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.873e-05/0.3704, allocations: 16 kB / 429.9 MB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007173/0.3712, allocations: 283.2 kB / 430.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001406/0.3726, allocations: 387.4 kB / 430.5 MB, free: 8.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/0.3783, allocations: 6.378 MB / 436.9 MB, free: 1.508 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.3797, allocations: 99.91 kB / 437 MB, free: 1.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001287/0.3799, allocations: 68 kB / 437.1 MB, free: 1.344 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.001541/0.3814, allocations: 1.043 MB / 438.1 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003006/0.3817, allocations: 197.6 kB / 438.3 MB, free: 100 kB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003817/0.3856, allocations: 2.25 MB / 440.5 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.475e-05/0.3856, allocations: 16 kB / 440.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.3856, allocations: 7.938 kB / 440.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.639e-05/0.3856, allocations: 8.172 kB / 440.6 MB, free: 13.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007672/0.3933, allocations: 5.102 MB / 445.7 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3934, allocations: 0 / 445.7 MB, free: 8.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007953/0.3942, allocations: 183.8 kB / 445.9 MB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001176/0.3953, allocations: 472 kB / 446.3 MB, free: 7.863 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.697e-05/0.3954, allocations: 39.92 kB / 446.4 MB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.16/0.5555, allocations: 11.14 MB / 457.5 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.5555, allocations: 1.625 kB / 457.5 MB, free: 107 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004776/0.5603, allocations: 3.131 MB / 460.6 MB, free: 105.8 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008276/0.5612, allocations: 431.4 kB / 461 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000256/0.5614, allocations: 39.06 kB / 461.1 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008264/0.5623, allocations: 61.91 kB / 461.1 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.5625, allocations: 109.4 kB / 461.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.619e-05/0.5626, allocations: 42.11 kB / 461.3 MB, free: 105.5 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001641/0.5643, allocations: 1.315 MB / 462.6 MB, free: 105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5643, allocations: 0 / 462.6 MB, free: 105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001723/0.566, allocations: 0.5817 MB / 463.2 MB, free: 105 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.0009426/0.5669, allocations: 478.3 kB / 463.7 MB, free: 104.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004041/0.571, allocations: 2.583 MB / 466.2 MB, free: 103.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.571, allocations: 3.938 kB / 466.2 MB, free: 103.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.5729, allocations: 1.578 MB / 467.8 MB, free: 102.6 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.5748, allocations: 0.5363 MB / 468.4 MB, free: 102.4 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007204/0.582, allocations: 5.852 MB / 474.2 MB, free: 99.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001405/0.5835, allocations: 2.35 MB / 476.6 MB, free: 97.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001214/0.5847, allocations: 410.2 kB / 477 MB, free: 97.22 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002809/0.585, allocations: 134.4 kB / 477.1 MB, free: 97.1 MB / 382.1 MB Notification: Performance of SimCode: time 6.01e-07/0.585, allocations: 0 / 477.1 MB, free: 97.1 MB / 382.1 MB Notification: Performance of Templates: time 0.04116/0.6261, allocations: 30.02 MB / 0.4952 GB, free: 67.22 MB / 382.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)