Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_dev_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] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006833/0.0006833, allocations: 80.16 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008831/0.001566, allocations: 443.9 kB / 10.36 MB, free: 332 kB / 10.45 MB " [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.0008879/0.0008879, allocations: 153.2 kB / 11.25 MB, free: 2.922 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001186/0.002074, allocations: 475.7 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [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 1.012/1.012, allocations: 177.2 MB / 189.7 MB, free: 5.289 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09167/1.103, allocations: 53.66 MB / 243.3 MB, free: 15.55 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/package.mo): time 0.0274/0.0274, allocations: 5.893 MB / 249.9 MB, free: 9.324 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004331/0.03173, allocations: 2.12 MB / 252.1 MB, free: 7.203 MB / 250.7 MB " [Timeout remaining time 180] Using package IndustrialControlSystems with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 2.0.1-master/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: translateModel(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning") translateModel(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.422e-06/1.422e-06, allocations: 0 / 253.3 MB, free: 5.953 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.675e-05/1.817e-05, allocations: 9.766 kB / 253.3 MB, free: 5.945 MB / 250.7 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning): time 0.00696/0.006978, allocations: 7.926 MB / 261.2 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003795/0.01077, allocations: 1.936 MB / 263.2 MB, free: 12.03 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009501/0.01172, allocations: 39.75 kB / 263.2 MB, free: 11.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008436/0.01257, allocations: 349.3 kB / 263.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001041/0.01361, allocations: 460.2 kB / 264 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007064/0.01431, allocations: 359.3 kB / 264.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001641/0.01596, allocations: 1.518 MB / 265.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005252/0.01648, allocations: 378.1 kB / 266.2 MB, free: 8.918 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001311/0.01779, allocations: 0.9483 MB / 267.2 MB, free: 7.965 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007061/0.0185, allocations: 462.6 kB / 267.6 MB, free: 7.512 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.01863, allocations: 132 kB / 267.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002611/0.01889, allocations: 175.9 kB / 267.9 MB, free: 7.211 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.01903, allocations: 207.2 kB / 268.2 MB, free: 7.008 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004764/0.01951, allocations: 387.3 kB / 268.5 MB, free: 6.629 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009467/0.02045, allocations: 0.8913 MB / 269.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.727e-05/0.02047, allocations: 0 / 269.4 MB, free: 5.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.02047, allocations: 4 kB / 269.4 MB, free: 5.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.844e-05/0.0205, allocations: 0 / 269.4 MB, free: 5.73 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 264 * Number of variables: 264 Notification: Performance of Generate backend data structure: time 0.001743/0.02225, allocations: 1.667 MB / 271.1 MB, free: 4.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.02229, allocations: 8.031 kB / 271.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003566/0.02265, allocations: 293.9 kB / 271.4 MB, free: 3.707 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.0237, allocations: 0.5452 MB / 271.9 MB, free: 3.133 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.821e-05/0.0238, allocations: 138 kB / 272.1 MB, free: 2.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.735e-05/0.0239, allocations: 112.3 kB / 272.2 MB, free: 2.875 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008263/0.02473, allocations: 1.007 MB / 273.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.02475, allocations: 0 / 273.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.868e-05/0.02481, allocations: 48 kB / 273.2 MB, free: 1.727 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.948e-05/0.02483, allocations: 24 kB / 273.3 MB, free: 1.703 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.02525, allocations: 417 kB / 273.7 MB, free: 1.285 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1233/0.1486, allocations: 3.434 MB / 277.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003584/0.1489, allocations: 353.4 kB / 277.4 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001955/0.1491, allocations: 239.8 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.1492, allocations: 7.25 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004834/0.1496, allocations: 0.6873 MB / 278.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 4.028e-06/0.1496, allocations: 0 / 278.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of matching and sorting (n=71): time 0.002839/0.1525, allocations: 2.404 MB / 280.8 MB, free: 11.85 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.554e-05/0.1526, allocations: 304.5 kB / 281.1 MB, free: 11.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006085/0.1532, allocations: 0.6234 MB / 281.7 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.562e-05/0.1532, allocations: 43.77 kB / 281.7 MB, free: 11.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002807/0.1535, allocations: 0.4965 MB / 282.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.1536, allocations: 237.8 kB / 282.5 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.1538, allocations: 203.9 kB / 282.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1539, allocations: 400.5 kB / 283.1 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.154, allocations: 146.4 kB / 283.2 MB, free: 10.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003299/0.1544, allocations: 0.6784 MB / 283.9 MB, free: 9.809 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.1551, allocations: 1.02 MB / 284.9 MB, free: 9.113 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/0.1552, allocations: 10.56 kB / 284.9 MB, free: 9.109 MB / 266.7 MB Notification: Performance of matching and sorting (n=145) (initialization): time 0.0008248/0.156, allocations: 0.7552 MB / 285.7 MB, free: 8.941 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.596e-05/0.156, allocations: 74.64 kB / 285.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/0.1561, allocations: 15.34 kB / 285.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.257e-05/0.1561, allocations: 21.12 kB / 285.8 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005472/0.1566, allocations: 278.2 kB / 286 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.183e-05/0.1567, allocations: 29.84 kB / 286.1 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.157, allocations: 53.03 kB / 286.1 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.1571, allocations: 47.31 kB / 286.2 MB, free: 8.875 MB / 266.7 MB Warning: Assuming fixed start value for the following 20 variables: noiseGen.U:DISCRETE(fixed = true protected = true ) \"Unscaled random sample\" type: Real ATPIdigital.nOx:DISCRETE(fixed = true protected = true ) \"Number of oscillations counted\" type: Integer ATPIdigital.lastToggleUp:DISCRETE(fixed = true protected = true ) \"Time of last upward relay toggle\" type: Real ATPIdigital.rCSmin:DISCRETE(fixed = true protected = true ) \"Recorded min CS in last half-cycle\" type: Real ATPIdigital.rCSmax:DISCRETE(fixed = true protected = true ) \"Recorded max CS in last half-cycle\" type: Real ATPIdigital.rPVmin:DISCRETE(fixed = true protected = true ) \"Recorded min PV in last half-cycle\" type: Real ATPIdigital.rPVmax:DISCRETE(fixed = true protected = true ) \"Recorded max PV in last half-cycle\" type: Real ATPIdigital.Pox:DISCRETE(fixed = true protected = true ) \"Process gain at oscillation freq.\" type: Real ATPIdigital.wox:DISCRETE(fixed = true protected = true ) \"Oscillation frequency [rad/s]\" type: Real ATPIdigital.period:DISCRETE(fixed = true protected = true ) \"Measured oscillation period [s]\" type: Real ATPIdigital.UP:DISCRETE(fixed = true protected = true ) \"Relay state: true = CS going up\" type: Boolean ATPIdigital.linFBout:VARIABLE(start = 0.0 fixed = true stateSelect=StateSelect.always protected = true ) \"Internal state in anti-windup\" 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 ) \"Control signal during auto-tuning\" type: Real ATPIdigital.iMode:DISCRETE(fixed = true ) \"Operating mode: 0=PI, 1=init, 2=run\" type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 44 ($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,$whenCondition5,ATPIdigital.TS_in,$PRE.noiseGen.y,$PRE.ATPIdigital.CSat,$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 (138): * Single equations (assignments): 136 * 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.0004155/0.1575, allocations: 363.4 kB / 286.5 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.1576, allocations: 103.3 kB / 286.6 MB, free: 8.664 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006015/0.1582, allocations: 0.67 MB / 287.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1582, allocations: 6.984 kB / 287.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1582, allocations: 0.75 kB / 287.3 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001901/0.1584, allocations: 89.94 kB / 287.4 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.507e-05/0.1584, allocations: 26.84 kB / 287.4 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.743e-05/0.1585, allocations: 34.08 kB / 287.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.1588, allocations: 47.08 kB / 287.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.855e-05/0.1588, allocations: 41.97 kB / 287.5 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006667/0.1595, allocations: 0.7204 MB / 288.3 MB, free: 8.184 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009036/0.1604, allocations: 1.166 MB / 289.4 MB, free: 7.77 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002341/0.1607, allocations: 314.9 kB / 289.7 MB, free: 7.691 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002643/0.1609, allocations: 278.9 kB / 290 MB, free: 7.66 MB / 266.7 MB Notification: Performance of Backend: time 4.11e-07/0.1609, allocations: 3.281 kB / 290 MB, free: 7.66 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009525/0.1619, allocations: 0.7465 MB / 290.8 MB, free: 7.414 MB / 266.7 MB Notification: Performance of SimCode: time 0.00858/0.1705, allocations: 2.407 MB / 293.2 MB, free: 5.965 MB / 266.7 MB Notification: Performance of Templates: time 0.01492/0.1854, allocations: 11.72 MB / 304.9 MB, free: 12.77 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.makefile [Timeout 660] (rm -f IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.pipe ; mkfifo IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.pipe ; head -c 1048576 < IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.pipe >> ../files/IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.sim & ./IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning -abortSlowSimulation -alarm=240 -lv LOG_STATS -s=ida > IndustrialControlSystems_dev_IndustrialControlSystems.Applications.ProcessControl.VelocityDriveControl_AutoTuning.pipe 2>&1) [Timeout 240] [Calling os._exit(0), Time elapsed: 2.872302705422044]