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.01147/0.01147, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.001342/0.001342, allocations: 189.1 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 2.017/2.017, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001461/0.001462, allocations: 50.64 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1561, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor): time 0.01445/0.1707, allocations: 9.412 MB / 382.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009578/0.1803, allocations: 3.393 MB / 386 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002652/0.183, allocations: 43.81 kB / 386 MB, free: 4.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.1866, allocations: 0.7262 MB / 386.8 MB, free: 3.668 MB / 318.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.005104/0.1917, allocations: 0.8077 MB / 387.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002286/0.194, allocations: 451.2 kB / 388 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005587/0.1996, allocations: 2.412 MB / 390.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004008/0.2037, allocations: 1.739 MB / 392.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003121/0.2068, allocations: 1.09 MB / 393.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004047/0.2109, allocations: 1.382 MB / 394.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001523/0.2124, allocations: 280 kB / 394.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002653/0.2151, allocations: 411.8 kB / 395.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00223/0.2174, allocations: 0.8064 MB / 396.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003952/0.2213, allocations: 1.279 MB / 397.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005715/0.2271, allocations: 3.727 MB / 401.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.2271, allocations: 0 / 401.1 MB, free: 5.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.2271, allocations: 4 kB / 401.1 MB, free: 5.211 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001016/0.2272, allocations: 0 / 401.1 MB, free: 5.211 MB / 334.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.007413/0.2347, allocations: 2.663 MB / 403.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.187e-05/0.2347, allocations: 11.89 kB / 403.8 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008877/0.2356, allocations: 270 kB / 404.1 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/0.2384, allocations: 1.322 MB / 405.4 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.2385, allocations: 147.7 kB / 405.5 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.2388, allocations: 183.9 kB / 405.7 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004401/0.2432, allocations: 2.436 MB / 408.1 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.023e-05/0.2433, allocations: 4 kB / 408.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001968/0.2435, allocations: 79.98 kB / 408.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.2437, allocations: 95.69 kB / 408.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003598/0.2473, allocations: 1.982 MB / 410.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01526/0.2626, allocations: 7.323 MB / 417.6 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002272/0.2649, allocations: 1.349 MB / 419 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00173/0.2667, allocations: 0.862 MB / 419.8 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003094/0.267, allocations: 126.1 kB / 420 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001313/0.2684, allocations: 0.6875 MB / 420.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 5.851e-06/0.2684, allocations: 0 / 420.6 MB, free: 1.227 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.01952/0.2879, allocations: 7.353 MB / 428 MB, free: 9.715 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001415/0.2881, allocations: 192.9 kB / 428.2 MB, free: 9.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/0.2917, allocations: 1.418 MB / 429.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002828/0.292, allocations: 45.7 kB / 429.7 MB, free: 7.992 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001335/0.2934, allocations: 0.9404 MB / 430.6 MB, free: 7.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006229/0.294, allocations: 421.9 kB / 431 MB, free: 6.621 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005378/0.2946, allocations: 243.5 kB / 431.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001777/0.2948, allocations: 361.9 kB / 431.6 MB, free: 6.016 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.2959, allocations: 0.6325 MB / 432.2 MB, free: 5.383 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.2975, allocations: 1.003 MB / 433.2 MB, free: 4.238 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002892/0.3005, allocations: 1.708 MB / 434.9 MB, free: 2.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.288e-05/0.3005, allocations: 0 / 434.9 MB, free: 2.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.005132/0.3056, allocations: 2.344 MB / 437.3 MB, free: 12 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.863e-05/0.3057, allocations: 8.25 kB / 437.3 MB, free: 4 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.747e-05/0.3058, allocations: 12.05 kB / 437.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001344/0.3071, allocations: 495.9 kB / 437.8 MB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.3083, allocations: 291.5 kB / 438.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008141/0.3165, allocations: 7.183 MB / 445.3 MB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001956/0.3185, allocations: 95.75 kB / 445.3 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001343/0.3186, allocations: 52 kB / 445.4 MB, free: 7.461 MB / 382.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.001781/0.3204, allocations: 0.6378 MB / 446 MB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005729/0.321, allocations: 158.1 kB / 446.2 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/0.3251, allocations: 2.135 MB / 448.3 MB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.3251, allocations: 12 kB / 448.3 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.93e-05/0.3251, allocations: 8 kB / 448.3 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.3252, allocations: 7.969 kB / 448.4 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3893/0.7144, allocations: 4.535 MB / 452.9 MB, free: 69.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-05/0.7145, allocations: 3.906 kB / 452.9 MB, free: 69.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001215/0.7157, allocations: 190.7 kB / 453.1 MB, free: 69.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/0.7177, allocations: 0.5294 MB / 453.6 MB, free: 69.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001462/0.7179, allocations: 38.38 kB / 453.6 MB, free: 69.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.7283, allocations: 8.712 MB / 462.4 MB, free: 63.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.7283, allocations: 8.562 kB / 462.4 MB, free: 63.2 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007051/0.7354, allocations: 3.092 MB / 465.5 MB, free: 61.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001309/0.7367, allocations: 372.2 kB / 465.8 MB, free: 61.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.737, allocations: 31.61 kB / 465.9 MB, free: 61.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009544/0.738, allocations: 75.73 kB / 465.9 MB, free: 61.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003797/0.7383, allocations: 97.91 kB / 466 MB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/0.7385, allocations: 40.95 kB / 466.1 MB, free: 61.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002016/0.7405, allocations: 0.9757 MB / 467 MB, free: 61.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.7405, allocations: 5.062 kB / 467 MB, free: 61.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002072/0.7426, allocations: 454.8 kB / 467.5 MB, free: 61.19 MB / 382.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.001382/0.744, allocations: 0.4937 MB / 468 MB, free: 60.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004264/0.7483, allocations: 2.254 MB / 470.2 MB, free: 59.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.7483, allocations: 3.656 kB / 470.2 MB, free: 59.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002752/0.751, allocations: 1.522 MB / 471.8 MB, free: 58.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002865/0.7539, allocations: 422.3 kB / 472.2 MB, free: 58.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009824/0.7638, allocations: 4.231 MB / 476.4 MB, free: 56.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001914/0.7658, allocations: 1.698 MB / 478.1 MB, free: 55.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001319/0.7671, allocations: 332 kB / 478.4 MB, free: 55.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002951/0.7674, allocations: 109.4 kB / 478.5 MB, free: 55.66 MB / 382.1 MB Notification: Performance of SimCode: time 1.833e-06/0.7674, allocations: 3.938 kB / 478.5 MB, free: 55.66 MB / 382.1 MB Notification: Performance of Templates: time 0.04274/0.8102, allocations: 25.05 MB / 0.4918 GB, free: 33.06 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)