Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001154/0.001154, 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.001592/0.001592, allocations: 193.8 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.689/1.689, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001432/0.001432, allocations: 51.92 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3307, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor): time 0.01452/0.3452, allocations: 9.418 MB / 334.7 MB, free: 10.42 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01104/0.3563, allocations: 3.38 MB / 338.1 MB, free: 7.098 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003497/0.3599, allocations: 43.81 kB / 338.2 MB, free: 7.055 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003312/0.3633, allocations: 0.7339 MB / 338.9 MB, free: 6.316 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.005293/0.3687, allocations: 0.8038 MB / 339.7 MB, free: 5.508 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001834/0.3705, allocations: 451.2 kB / 340.1 MB, free: 5.066 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004885/0.3754, allocations: 2.409 MB / 342.5 MB, free: 2.645 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002331/0.3778, allocations: 1.739 MB / 344.3 MB, free: 0.8633 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002078/0.3799, allocations: 1.086 MB / 345.4 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002095/0.382, allocations: 1.39 MB / 346.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004193/0.3824, allocations: 280 kB / 347 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009024/0.3833, allocations: 403.8 kB / 347.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008513/0.3842, allocations: 0.8064 MB / 348.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.3857, allocations: 1.279 MB / 349.5 MB, free: 11.62 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003917/0.3896, allocations: 3.684 MB / 353.2 MB, free: 7.922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.853e-06/0.3896, allocations: 4 kB / 353.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.3896, allocations: 0 / 353.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.094e-05/0.3897, allocations: 4 kB / 353.2 MB, free: 7.914 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.006113/0.3958, allocations: 2.663 MB / 355.9 MB, free: 5.191 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.959e-05/0.3959, allocations: 11.89 kB / 355.9 MB, free: 5.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007589/0.3967, allocations: 270 kB / 356.1 MB, free: 4.914 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002223/0.3989, allocations: 1.299 MB / 357.4 MB, free: 3.559 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.3991, allocations: 143.7 kB / 357.6 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002899/0.3994, allocations: 195.8 kB / 357.8 MB, free: 3.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004563/0.4039, allocations: 2.432 MB / 360.2 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.589e-05/0.404, allocations: 3.938 kB / 360.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.4042, allocations: 75.98 kB / 360.3 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001288/0.4043, allocations: 99.67 kB / 360.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003686/0.408, allocations: 1.978 MB / 362.4 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01285/0.4209, allocations: 7.401 MB / 369.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.4231, allocations: 1.352 MB / 371.1 MB, free: 5.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/0.4248, allocations: 0.8934 MB / 372 MB, free: 4.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002868/0.4251, allocations: 126.1 kB / 372.1 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001106/0.4262, allocations: 0.6797 MB / 372.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=99): time 3.086e-06/0.4262, allocations: 0 / 372.8 MB, free: 3.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.01978/0.446, allocations: 7.354 MB / 380.2 MB, free: 12.33 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001613/0.4462, allocations: 192.9 kB / 380.4 MB, free: 12.1 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002924/0.4492, allocations: 1.422 MB / 381.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001619/0.4494, allocations: 45.7 kB / 381.8 MB, free: 10.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.4506, allocations: 0.9327 MB / 382.8 MB, free: 9.664 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005329/0.4511, allocations: 425.9 kB / 383.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004937/0.4516, allocations: 243.5 kB / 383.4 MB, free: 9 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.4518, allocations: 357.9 kB / 383.8 MB, free: 8.645 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001273/0.4531, allocations: 0.6402 MB / 384.4 MB, free: 8.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001604/0.4547, allocations: 1.011 MB / 385.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002563/0.4573, allocations: 1.7 MB / 387.1 MB, free: 5.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4573, allocations: 4 kB / 387.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004426/0.4618, allocations: 2.34 MB / 389.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.4618, allocations: 12 kB / 389.5 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.4619, allocations: 8.25 kB / 389.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001336/0.4632, allocations: 0.4922 MB / 390 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.4644, allocations: 303.5 kB / 390.3 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008823/0.4732, allocations: 7.171 MB / 397.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001969/0.4753, allocations: 99.91 kB / 397.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003154/0.4756, allocations: 55.98 kB / 397.6 MB, free: 10.06 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.001792/0.4774, allocations: 0.6302 MB / 398.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006518/0.4781, allocations: 154.1 kB / 398.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004384/0.4825, allocations: 2.146 MB / 400.5 MB, free: 7.074 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.4825, allocations: 12 kB / 400.5 MB, free: 7.062 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.4826, allocations: 8 kB / 400.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.4826, allocations: 11.92 kB / 400.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009001/0.4916, allocations: 4.55 MB / 405.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.397e-05/0.4916, allocations: 4 kB / 405.1 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008405/0.4925, allocations: 199.7 kB / 405.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001408/0.4939, allocations: 0.5348 MB / 405.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.494, allocations: 35.98 kB / 405.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009776/0.5038, allocations: 8.722 MB / 414.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.385e-05/0.5039, allocations: 4 kB / 414.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006535/0.5105, allocations: 3.089 MB / 417.7 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.5117, allocations: 371.1 kB / 418 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005783/0.5123, allocations: 31.98 kB / 418.1 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.5136, allocations: 67.94 kB / 418.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000396/0.514, allocations: 108.8 kB / 418.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001102/0.5141, allocations: 39.98 kB / 418.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002497/0.5166, allocations: 0.9753 MB / 419.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5167, allocations: 0 / 419.3 MB, free: 3.488 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003197/0.5199, allocations: 452 kB / 419.7 MB, free: 3.047 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.001726/0.5216, allocations: 0.4907 MB / 420.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.006575/0.5282, allocations: 2.68 MB / 422.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.346e-05/0.5282, allocations: 4 kB / 422.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002779/0.531, allocations: 1.511 MB / 424.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003843/0.5349, allocations: 428.3 kB / 424.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01036/0.5453, allocations: 4.281 MB / 429.1 MB, free: 9.43 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002538/0.5479, allocations: 1.709 MB / 430.8 MB, free: 7.688 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001668/0.5496, allocations: 325 kB / 431.1 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005669/0.5502, allocations: 107.4 kB / 431.2 MB, free: 7.258 MB / 366.1 MB Notification: Performance of SimCode: time 1.843e-06/0.5502, allocations: 0 / 431.2 MB, free: 7.258 MB / 366.1 MB Notification: Performance of Templates: time 0.2953/0.8455, allocations: 24.65 MB / 455.9 MB, free: 112.9 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe 2>&1)