Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0002082/0.0002082, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0002306/0.0002306, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.1361/0.1361, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo): time 0.01756/0.01756, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: simulate(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning,startTime=0,stopTime=12,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS") simulate(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning,startTime=0,stopTime=12,tolerance=1e-06,numberOfIntervals=2500,outputFormat="empty",variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning",simflags="-abortSlowSimulation -alarm=240 -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.599e-05/1.764e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning): time 0.008945/0.008962, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.003281/0.01224, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0004058/0.01265, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0008247/0.01347, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.001042/0.01452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.000623/0.01514, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001045/0.01618, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0005234/0.01671, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.001632/0.01834, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.01898, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.01913, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.01942, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0002694/0.01968, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0004844/0.02017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.001287/0.02146, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.000155/0.02161, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.532e-06/0.02161, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.192e-05/0.02163, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 262 * Number of variables: 262 Notification: Performance of Generate backend data structure: time 0.001923/0.02355, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 9.139e-05/0.02364, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003403/0.02398, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008269/0.02481, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000124/0.02493, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001369/0.02507, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009983/0.02607, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/0.0261, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.033e-05/0.02619, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.254e-05/0.02621, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004244/0.02664, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002984/0.02962, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.000308/0.02993, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0001623/0.03009, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.03011, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004486/0.03056, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=66): time 5.911e-06/0.03057, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=71): time 0.003368/0.03394, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 8.886e-05/0.03402, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.03457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 7.99e-05/0.03465, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.03495, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0001688/0.03512, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/0.03535, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 5.845e-05/0.03541, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001476/0.03555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002625/0.03582, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0006904/0.03651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.66e-05/0.03652, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=148) (initialization): time 0.000902/0.03743, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 4.935e-05/0.03748, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.0375, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 4.001e-05/0.03754, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005634/0.0381, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.404e-05/0.03814, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004688/0.03861, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.539e-05/0.03869, allocations: 0 / 0, free: 0 / 0 Warning: Assuming fixed start value for the following 20 variables: noiseGen.U:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.nOx:DISCRETE(fixed = true protected = true ) type: Integer ATPIdigital.lastToggleUp:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.rCSmin:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.rCSmax:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.rPVmin:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.rPVmax:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.Pox:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.wox:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.period:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.UP:DISCRETE(fixed = true protected = true ) type: Boolean ATPIdigital.linFBout:VARIABLE(start = 0.0 fixed = true stateSelect=StateSelect.always protected = true ) type: Real M1.la.i:VARIABLE(start = 0.0 unit = \"A\" fixed = true ) \"Current flowing from pin p to pin n\" type: Real J1.phi_rel:VARIABLE(start = 0.0 unit = \"rad\" fixed = true nominal = if J1.phi_nominal >= 2.220446049250313e-16 then J1.phi_nominal else 1.0 stateSelect=StateSelect.prefer ) \"Relative rotation angle (= flange_b.phi - flange_a.phi)\" type: Real J1.w_rel:VARIABLE(start = 0.0 unit = \"rad/s\" fixed = true stateSelect=StateSelect.prefer ) \"Relative angular velocity (= der(phi_rel))\" type: Real noiseGen.y:DISCRETE(flow=false fixed = true ) \"output\" type: Real L1.w:VARIABLE(unit = \"rad/s\" fixed = true ) \"Absolute angular velocity of component (= der(phi))\" type: Real L1.phi:VARIABLE(unit = \"rad\" fixed = true ) \"Absolute rotation angle of component\" type: Real ATPIdigital.CSat:DISCRETE(fixed = true protected = true ) type: Real ATPIdigital.iMode:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 48 ($PRE.noiseGen.U,noiseGen.U,$PRE.ATPIdigital.nOx,ATPIdigital.nOx,$PRE.ATPIdigital.lastToggleUp,ATPIdigital.lastToggleUp,$PRE.ATPIdigital.rCSmin,ATPIdigital.rCSmin,$PRE.ATPIdigital.rCSmax,ATPIdigital.rCSmax,$PRE.ATPIdigital.rPVmin,ATPIdigital.rPVmin,$PRE.ATPIdigital.rPVmax,ATPIdigital.rPVmax,$PRE.ATPIdigital.Pox,ATPIdigital.Pox,$PRE.ATPIdigital.wox,ATPIdigital.wox,$PRE.ATPIdigital.period,ATPIdigital.period,$PRE.ATPIdigital.UP,ATPIdigital.UP,noiseGen.X,$PRE.noiseGen.X,$whenCondition5,ATPIdigital.TS_in,$PRE.noiseGen.y,$PRE.ATPIdigital.AT,$PRE.ATPIdigital.CSat,$PRE.ATPIdigital.TI,$PRE.ATPIdigital.K,$PRE.ATPIdigital.iMode,noiseGen.y,ATPIdigital.AT,ATPIdigital.CSat,ATPIdigital.TI,ATPIdigital.K,ATPIdigital.iMode,ATPIdigital.at_req,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition6,noiseGen.Yfp,noiseGen.Ufp[1],ATPIdigital.satLOW_in,ATPIdigital.satHIGH_in) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004749/0.03916, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001355/0.0393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007491/0.04005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.04005, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.04006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.04007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001552/0.04162, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.04163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000279/0.04191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.04191, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.007e-05/0.04197, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.274e-06/0.04198, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.04198, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008766/0.04286, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/0.0431, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002749/0.04337, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003188/0.04369, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.0438, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.405e-05/0.04386, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0002266/0.04408, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 1.964e-05/0.0441, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0009849/0.04509, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (ATPIdigital.linFBout,M1.la.i,J1.phi_rel,J1.w_rel,L1.phi,L1.w) * Number of discrete variables: 25 ($whenCondition6,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,ATPIdigital.at_req,ATPIdigital.iMode,ATPIdigital.K,ATPIdigital.TI,ATPIdigital.CSat,ATPIdigital.AT,ATPIdigital.UP,ATPIdigital.rPVmax,ATPIdigital.rPVmin,ATPIdigital.rCSmax,ATPIdigital.rCSmin,ATPIdigital.lastToggleUp,ATPIdigital.period,ATPIdigital.wox,ATPIdigital.Pox,ATPIdigital.nOx,noiseGen.y,noiseGen.X,noiseGen.U) * Number of discrete states: 25 (noiseGen.y,noiseGen.U,$whenCondition5,noiseGen.X,$whenCondition4,$whenCondition3,ATPIdigital.nOx,ATPIdigital.lastToggleUp,ATPIdigital.rCSmin,ATPIdigital.rCSmax,ATPIdigital.rPVmin,ATPIdigital.rPVmax,ATPIdigital.Pox,ATPIdigital.wox,ATPIdigital.period,ATPIdigital.UP,ATPIdigital.CSat,$whenCondition2,ATPIdigital.iMode,$whenCondition1,ATPIdigital.AT,ATPIdigital.TI,ATPIdigital.K,ATPIdigital.CSpi,ATPIdigital.PV) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003739/0.04546, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.0006927/0.04615, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.04616, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0003588/0.04652, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009069/0.04742, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.0498, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.04999, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.000267/0.05026, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005277/0.05079, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 3.771e-05/0.05082, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.002174/0.053, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 900] [Calling sys.exit(0), Time elapsed: 0.7194835222326219]