Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, 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.001533/0.001534, allocations: 192.5 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.736/1.736, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001426/0.001426, allocations: 51.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2788/0.2802, allocations: 46.64 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor): time 0.01362/0.2939, allocations: 9.415 MB / 334.7 MB, free: 10.4 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008355/0.3023, allocations: 3.384 MB / 338.1 MB, free: 7.074 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002133/0.3045, allocations: 43.75 kB / 338.2 MB, free: 7.031 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002207/0.3067, allocations: 0.7301 MB / 338.9 MB, free: 6.297 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.003306/0.3101, allocations: 0.8038 MB / 339.7 MB, free: 5.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001417/0.3115, allocations: 447.2 kB / 340.1 MB, free: 5.051 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003365/0.3149, allocations: 2.42 MB / 342.6 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002191/0.3171, allocations: 1.735 MB / 344.3 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00207/0.3192, allocations: 1.082 MB / 345.4 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.3211, allocations: 1.382 MB / 346.8 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003753/0.3214, allocations: 283.9 kB / 347 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007643/0.3222, allocations: 411.8 kB / 347.4 MB, free: 13.69 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008134/0.3231, allocations: 0.8025 MB / 348.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001387/0.3245, allocations: 1.275 MB / 349.5 MB, free: 11.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003538/0.328, allocations: 3.692 MB / 353.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.328, allocations: 0 / 353.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.328, allocations: 0 / 353.2 MB, free: 7.898 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.119e-05/0.3281, allocations: 4 kB / 353.2 MB, free: 7.895 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.005533/0.3336, allocations: 2.667 MB / 355.9 MB, free: 5.168 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.323e-05/0.3337, allocations: 15.89 kB / 355.9 MB, free: 5.152 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008122/0.3345, allocations: 266 kB / 356.1 MB, free: 4.891 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002206/0.3367, allocations: 1.291 MB / 357.4 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.3369, allocations: 147.7 kB / 357.6 MB, free: 3.398 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002923/0.3372, allocations: 187.9 kB / 357.8 MB, free: 3.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004121/0.3413, allocations: 2.436 MB / 360.2 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.967e-05/0.3414, allocations: 8 kB / 360.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.3416, allocations: 75.98 kB / 360.3 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001039/0.3417, allocations: 95.67 kB / 360.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003534/0.3452, allocations: 1.99 MB / 362.4 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01151/0.3568, allocations: 7.405 MB / 369.8 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002101/0.3589, allocations: 1.337 MB / 371.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/0.3606, allocations: 0.9051 MB / 372 MB, free: 4.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002912/0.3609, allocations: 118.1 kB / 372.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.362, allocations: 0.6836 MB / 372.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=99): time 3.136e-06/0.362, allocations: 0 / 372.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.01758/0.3796, allocations: 7.354 MB / 380.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.3797, allocations: 200.9 kB / 380.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002726/0.3825, allocations: 1.418 MB / 381.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.3826, allocations: 49.7 kB / 381.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.3836, allocations: 0.9248 MB / 382.8 MB, free: 9.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004029/0.384, allocations: 429.9 kB / 383.2 MB, free: 9.215 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004417/0.3845, allocations: 247.4 kB / 383.4 MB, free: 8.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3847, allocations: 353.9 kB / 383.8 MB, free: 8.617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/0.3857, allocations: 0.6364 MB / 384.4 MB, free: 7.98 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3871, allocations: 1.007 MB / 385.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002474/0.3896, allocations: 1.704 MB / 387.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-05/0.3896, allocations: 4 kB / 387.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004231/0.3939, allocations: 2.34 MB / 389.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.3939, allocations: 8 kB / 389.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.902e-05/0.394, allocations: 12 kB / 389.5 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.3952, allocations: 0.4883 MB / 390 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001086/0.3963, allocations: 295.5 kB / 390.3 MB, free: 1.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008041/0.4044, allocations: 7.183 MB / 397.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.4062, allocations: 99.84 kB / 397.5 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002806/0.4065, allocations: 55.98 kB / 397.6 MB, free: 10.04 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (148): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,12,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00164/0.4082, allocations: 0.634 MB / 398.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005397/0.4087, allocations: 154.1 kB / 398.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00412/0.4128, allocations: 2.139 MB / 400.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.4129, allocations: 12 kB / 400.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.151e-05/0.4129, allocations: 4 kB / 400.5 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4129, allocations: 7.922 kB / 400.5 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009515/0.4224, allocations: 4.562 MB / 405.1 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.095e-05/0.4225, allocations: 4 kB / 405.1 MB, free: 2.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008172/0.4233, allocations: 191.7 kB / 405.3 MB, free: 2.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001422/0.4248, allocations: 0.5468 MB / 405.8 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.4249, allocations: 31.98 kB / 405.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/0.4351, allocations: 8.722 MB / 414.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.4352, allocations: 8.062 kB / 414.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005939/0.4411, allocations: 3.081 MB / 417.7 MB, free: 5.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001392/0.4425, allocations: 371.1 kB / 418 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006449/0.4432, allocations: 35.98 kB / 418.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001341/0.4446, allocations: 63.94 kB / 418.1 MB, free: 4.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003108/0.4449, allocations: 104.7 kB / 418.2 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.753e-05/0.445, allocations: 39.98 kB / 418.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002359/0.4474, allocations: 0.9792 MB / 419.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4474, allocations: 0 / 419.3 MB, free: 3.473 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002754/0.4501, allocations: 452 kB / 419.7 MB, free: 3.031 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (105): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001371/0.4515, allocations: 498.5 kB / 420.2 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.005328/0.4569, allocations: 2.681 MB / 422.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/0.4569, allocations: 0 / 422.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002575/0.4595, allocations: 1.518 MB / 424.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003055/0.4626, allocations: 424.4 kB / 424.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008938/0.4715, allocations: 4.285 MB / 429.1 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002225/0.4738, allocations: 1.706 MB / 430.8 MB, free: 7.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001405/0.4752, allocations: 321 kB / 431.1 MB, free: 7.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004287/0.4756, allocations: 107.4 kB / 431.2 MB, free: 7.25 MB / 366.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4757, allocations: 3.938 kB / 431.2 MB, free: 7.246 MB / 366.1 MB Notification: Performance of Templates: time 0.2648/0.7405, allocations: 24.65 MB / 455.9 MB, free: 112.9 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe 2>&1)