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.009366/0.009366, allocations: 101.5 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.001403/0.001403, allocations: 192.8 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.007/2.007, allocations: 205.1 MB / 222.5 MB, free: 4.441 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.001427/0.001427, allocations: 58.91 kB / 326.6 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1623/0.1637, allocations: 46.62 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.01512/0.1789, allocations: 9.412 MB / 382.6 MB, free: 7.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01101/0.19, allocations: 3.397 MB / 386 MB, free: 4.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.1934, allocations: 43.81 kB / 386 MB, free: 4.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004079/0.1976, allocations: 0.7652 MB / 386.8 MB, free: 3.625 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.005512/0.2032, allocations: 0.839 MB / 387.6 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00237/0.2056, allocations: 451.2 kB / 388.1 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00583/0.2115, allocations: 2.409 MB / 390.5 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002866/0.2144, allocations: 1.742 MB / 392.2 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002931/0.2173, allocations: 1.09 MB / 393.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003164/0.2205, allocations: 1.39 MB / 394.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006375/0.2212, allocations: 280 kB / 395 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001388/0.2226, allocations: 407.8 kB / 395.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.2237, allocations: 0.8103 MB / 396.2 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002565/0.2263, allocations: 1.275 MB / 397.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006968/0.2333, allocations: 3.731 MB / 401.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.2333, allocations: 0 / 401.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2334, allocations: 0 / 401.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002036/0.2336, allocations: 0 / 401.2 MB, free: 5.133 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.009218/0.2428, allocations: 2.663 MB / 403.9 MB, free: 2.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.422e-05/0.2429, allocations: 15.89 kB / 403.9 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.2439, allocations: 270 kB / 404.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003125/0.2471, allocations: 1.314 MB / 405.5 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001361/0.2472, allocations: 143.7 kB / 405.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003001/0.2476, allocations: 191.9 kB / 405.8 MB, free: 444 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004718/0.2523, allocations: 2.436 MB / 408.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.214e-05/0.2524, allocations: 4 kB / 408.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.2526, allocations: 79.98 kB / 408.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003042/0.2529, allocations: 99.61 kB / 408.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003945/0.2568, allocations: 1.982 MB / 410.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01459/0.2714, allocations: 7.319 MB / 417.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001965/0.2734, allocations: 1.348 MB / 419.1 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.2751, allocations: 0.8659 MB / 419.9 MB, free: 2.004 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002939/0.2754, allocations: 126.1 kB / 420 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.2766, allocations: 0.6875 MB / 420.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 4.388e-06/0.2766, allocations: 0 / 420.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.01801/0.2946, allocations: 7.345 MB / 428.1 MB, free: 9.641 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002083/0.2949, allocations: 200.8 kB / 428.3 MB, free: 9.398 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003265/0.2981, allocations: 1.415 MB / 429.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000184/0.2984, allocations: 45.7 kB / 429.7 MB, free: 7.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001338/0.2997, allocations: 0.9404 MB / 430.7 MB, free: 6.961 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005697/0.3003, allocations: 417.9 kB / 431.1 MB, free: 6.547 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006616/0.301, allocations: 247.4 kB / 431.3 MB, free: 6.297 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002718/0.3013, allocations: 361.9 kB / 431.7 MB, free: 5.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.3027, allocations: 0.6286 MB / 432.3 MB, free: 5.309 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.3043, allocations: 1.007 MB / 433.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002809/0.3072, allocations: 1.704 MB / 435 MB, free: 2.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.666e-05/0.3072, allocations: 4 kB / 435 MB, free: 2.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.005057/0.3123, allocations: 2.336 MB / 437.4 MB, free: 15.94 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.807e-05/0.3123, allocations: 12 kB / 437.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.826e-05/0.3124, allocations: 8.25 kB / 437.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.3138, allocations: 0.4921 MB / 437.9 MB, free: 15.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.315, allocations: 291.6 kB / 438.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00922/0.3243, allocations: 7.175 MB / 445.3 MB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002061/0.3264, allocations: 99.75 kB / 445.4 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00035/0.3268, allocations: 52 kB / 445.5 MB, free: 7.387 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.002157/0.329, allocations: 0.6456 MB / 446.1 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008361/0.3298, allocations: 154.1 kB / 446.3 MB, free: 6.578 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004778/0.3346, allocations: 2.135 MB / 448.4 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.748e-05/0.3347, allocations: 16 kB / 448.4 MB, free: 4.387 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.592e-05/0.3347, allocations: 7.984 kB / 448.4 MB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.795e-05/0.3347, allocations: 7.984 kB / 448.4 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3507/0.6854, allocations: 4.533 MB / 453 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-05/0.6855, allocations: 3.719 kB / 453 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.6866, allocations: 192.2 kB / 453.2 MB, free: 68.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.6883, allocations: 0.529 MB / 453.7 MB, free: 68.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001619/0.6885, allocations: 33.73 kB / 453.7 MB, free: 68.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009034/0.6975, allocations: 8.723 MB / 462.4 MB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.176e-05/0.6976, allocations: 9.172 kB / 462.5 MB, free: 63.04 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005467/0.7031, allocations: 3.082 MB / 465.5 MB, free: 61.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009896/0.7041, allocations: 375.8 kB / 465.9 MB, free: 61.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.7043, allocations: 35.31 kB / 465.9 MB, free: 61.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007691/0.7051, allocations: 72.05 kB / 466 MB, free: 61.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003335/0.7054, allocations: 97.28 kB / 466.1 MB, free: 61.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.598e-05/0.7055, allocations: 37.8 kB / 466.1 MB, free: 61.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001625/0.7072, allocations: 0.9787 MB / 467.1 MB, free: 61.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7072, allocations: 1.031 kB / 467.1 MB, free: 61.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002129/0.7093, allocations: 455.6 kB / 467.6 MB, free: 61.04 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.001278/0.7106, allocations: 0.4982 MB / 468.1 MB, free: 60.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00408/0.7147, allocations: 2.258 MB / 470.3 MB, free: 59.6 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/0.7147, allocations: 0 / 470.3 MB, free: 59.6 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.7169, allocations: 1.52 MB / 471.8 MB, free: 58.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/0.7194, allocations: 422.5 kB / 472.3 MB, free: 58.56 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008376/0.7278, allocations: 4.222 MB / 476.5 MB, free: 56.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/0.7298, allocations: 1.709 MB / 478.2 MB, free: 55.57 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001255/0.7311, allocations: 325.7 kB / 478.5 MB, free: 55.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004404/0.7316, allocations: 108.2 kB / 478.6 MB, free: 55.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.894e-06/0.7316, allocations: 0 / 478.6 MB, free: 55.5 MB / 382.1 MB Notification: Performance of Templates: time 0.04595/0.7775, allocations: 25.05 MB / 0.4919 GB, free: 32.88 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)