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.01253/0.01253, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.002299/0.002299, allocations: 190.4 kB / 16.67 MB, free: 5.98 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.001/2.001, allocations: 205.1 MB / 222.5 MB, free: 4.395 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.00184/0.00184, allocations: 50.83 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1638, allocations: 46.63 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor): time 0.01426/0.1781, allocations: 9.416 MB / 382.6 MB, free: 7.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009415/0.1876, allocations: 3.397 MB / 386 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003176/0.1909, allocations: 43.81 kB / 386 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003808/0.1948, allocations: 0.7613 MB / 386.8 MB, free: 3.613 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.005045/0.1999, allocations: 0.8312 MB / 387.6 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001973/0.2019, allocations: 459.1 kB / 388.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005301/0.2072, allocations: 2.416 MB / 390.5 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003594/0.2108, allocations: 1.743 MB / 392.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002693/0.2136, allocations: 1.09 MB / 393.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003286/0.2169, allocations: 1.39 MB / 394.7 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001263/0.2181, allocations: 280 kB / 395 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.2205, allocations: 403.8 kB / 395.4 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001779/0.2223, allocations: 0.8103 MB / 396.2 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003786/0.2261, allocations: 1.275 MB / 397.5 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005967/0.2321, allocations: 3.734 MB / 401.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2322, allocations: 0 / 401.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.2322, allocations: 0 / 401.2 MB, free: 5.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.167e-05/0.2322, allocations: 0 / 401.2 MB, free: 5.113 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.005956/0.2382, allocations: 2.663 MB / 403.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.906e-05/0.2383, allocations: 11.89 kB / 403.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008388/0.2391, allocations: 266 kB / 404.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.2414, allocations: 1.322 MB / 405.5 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/0.2415, allocations: 143.7 kB / 405.6 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000281/0.2418, allocations: 187.9 kB / 405.8 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004302/0.2461, allocations: 2.436 MB / 408.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.607e-05/0.2462, allocations: 4 kB / 408.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.2464, allocations: 79.98 kB / 408.3 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.2465, allocations: 95.67 kB / 408.4 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003472/0.25, allocations: 1.99 MB / 410.4 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01357/0.2636, allocations: 7.315 MB / 417.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002164/0.2658, allocations: 1.345 MB / 419.1 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001631/0.2675, allocations: 0.8659 MB / 419.9 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/0.2678, allocations: 126.1 kB / 420 MB, free: 1.852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001327/0.2692, allocations: 0.6874 MB / 420.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=99): time 5.65e-06/0.2692, allocations: 4 kB / 420.7 MB, free: 1.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=121): time 0.01965/0.2889, allocations: 7.349 MB / 428.1 MB, free: 9.621 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001716/0.2891, allocations: 196.9 kB / 428.3 MB, free: 9.383 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00358/0.2927, allocations: 1.415 MB / 429.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001268/0.2929, allocations: 45.7 kB / 429.7 MB, free: 7.898 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001286/0.2942, allocations: 0.9365 MB / 430.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005082/0.2947, allocations: 421.9 kB / 431.1 MB, free: 6.531 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004934/0.2952, allocations: 243.5 kB / 431.3 MB, free: 6.285 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.2954, allocations: 361.9 kB / 431.7 MB, free: 5.926 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.2966, allocations: 0.6364 MB / 432.3 MB, free: 5.289 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/0.2981, allocations: 0.999 MB / 433.3 MB, free: 4.148 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.3009, allocations: 1.708 MB / 435 MB, free: 2.309 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.738e-05/0.3009, allocations: 4 kB / 435 MB, free: 2.305 MB / 366.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004749/0.3057, allocations: 2.336 MB / 437.4 MB, free: 15.93 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.611e-05/0.3057, allocations: 8 kB / 437.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.519e-05/0.3058, allocations: 15.92 kB / 437.4 MB, free: 15.9 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.3072, allocations: 0.4884 MB / 437.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.3084, allocations: 291.6 kB / 438.2 MB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008512/0.3169, allocations: 7.182 MB / 445.3 MB, free: 7.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.3187, allocations: 91.77 kB / 445.4 MB, free: 7.422 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001912/0.3189, allocations: 55.98 kB / 445.5 MB, free: 7.367 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.00165/0.3206, allocations: 0.634 MB / 446.1 MB, free: 6.723 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006841/0.3213, allocations: 154.1 kB / 446.3 MB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00429/0.3256, allocations: 2.147 MB / 448.4 MB, free: 4.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.856e-05/0.3256, allocations: 12 kB / 448.4 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-05/0.3256, allocations: 4 kB / 448.4 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-05/0.3257, allocations: 11.97 kB / 448.4 MB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3756/0.7013, allocations: 4.529 MB / 453 MB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.313e-05/0.7014, allocations: 4.562 kB / 453 MB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.7026, allocations: 192.5 kB / 453.2 MB, free: 69.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002009/0.7047, allocations: 0.5335 MB / 453.7 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001641/0.7048, allocations: 34.58 kB / 453.7 MB, free: 69.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009009/0.7139, allocations: 8.72 MB / 462.4 MB, free: 63.3 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.7139, allocations: 7.906 kB / 462.5 MB, free: 63.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006429/0.7204, allocations: 3.089 MB / 465.5 MB, free: 61.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001262/0.7217, allocations: 370.5 kB / 465.9 MB, free: 61.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002742/0.7219, allocations: 35.5 kB / 465.9 MB, free: 61.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.7229, allocations: 69.72 kB / 466 MB, free: 61.75 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003549/0.7233, allocations: 98.83 kB / 466.1 MB, free: 61.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.222e-05/0.7234, allocations: 38.12 kB / 466.1 MB, free: 61.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001756/0.7251, allocations: 0.9861 MB / 467.1 MB, free: 61.34 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.7251, allocations: 1.031 kB / 467.1 MB, free: 61.34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002242/0.7274, allocations: 447.7 kB / 467.6 MB, free: 61.3 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.001334/0.7287, allocations: 0.4951 MB / 468.1 MB, free: 61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004266/0.733, allocations: 2.253 MB / 470.3 MB, free: 59.87 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.733, allocations: 0 / 470.3 MB, free: 59.87 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002619/0.7357, allocations: 1.513 MB / 471.8 MB, free: 59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003054/0.7387, allocations: 432.5 kB / 472.2 MB, free: 58.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007951/0.7467, allocations: 4.227 MB / 476.5 MB, free: 56.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001449/0.7482, allocations: 1.708 MB / 478.2 MB, free: 55.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001451/0.7497, allocations: 322.9 kB / 478.5 MB, free: 55.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003224/0.75, allocations: 111.6 kB / 478.6 MB, free: 55.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.75, allocations: 0 / 478.6 MB, free: 55.77 MB / 382.1 MB Notification: Performance of Templates: time 0.04286/0.7929, allocations: 25.05 MB / 0.4919 GB, free: 33.26 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)